小杨这学期准备参加 GESP 的 7 级考试,其中有关于三角函数的内容,他能够通过下面的代码找到结束循环的角度值。( )
import math
def function():
while True:
x=float(input())
x=x/180*3.14
if int(math.sin(x)*math.sin(x)+math.cos(x)*math.cos(x))==1:
print(x)
break
function()
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析