为什么IDLE一直说我的打印功能无效

时间:2017-09-28 22:37:54

标签: python python-3.6

导入数学

radius = int(input(' Can I please get the radius of your circle ')
print(math.pi * radius**2 )

这是我的代码,我对编程非常陌生,我只是没有得到它

非常感谢你,我明白了。

2 个答案:

答案 0 :(得分:2)

您忘记了一个与int函数匹配的括号:

radius = int(input(' Can I please get the radius of your circle ')) #<-right here
print(math.pi * radius**2 )

答案 1 :(得分:2)

您在第一行中缺少结束括号:

radius = int(input(' Can I please get the radius of your circle '))  
#                                      ---------------------------^