python 平方报错multiple statements found while compiling a single state

weixin_44853162 2019-03-30 12:07:40



n=int(input("please enter the number about radius of the circle:"))
a=pow(n,2)

SyntaxError: multiple statements found while compiling a single statement

为什么呢
...全文
3408 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
pzx521521 2019-04-02
  • 打赏
  • 举报
回复
楼上正解 上面是编译报错 编译都编译过去 初学者推荐使用ide, 不要用手一个一个敲, 很容易出错
Steven·简谈 2019-04-02
  • 打赏
  • 举报
回复
推荐用编辑器
ruancan 2019-03-30
  • 打赏
  • 举报
回复
先输入n=int(input("please enter the number about radius of the circle:"))
然后按回车
再出输入a=pow(n,2)
然后按回车,要分开输入

37,744

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧