导入数学
radius = int(input(' Can I please get the radius of your circle ')
print(math.pi * radius**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 '))
# ---------------------------^