首页->Python练习题
当键盘输入“3”的时候,以下程序的输出结果是( )。r=float(input("请输入半径:"))、area=3.1415*r*rprint("{:.0f}".format(area))
(A)28
(B)28.27
(C)29
(D)TypeError
参考答案

更多Python练习题试题
- 1Python 语句 s=‘abcdefg',则s[::-1]的值是________________ 。
- 2已知x=np.array([3,5,1,9,6,3]),表达式np.where(x>5,1,0).sum()的值为 2 。
- 3表达式16/4-2**5*8/4%5//2的值为
- 4Python不支持的数据类型有( )
- 5已知x=np.array((1,2,3,4,5)),表达式(x**2).max()的值为 25