欢迎访问海纳仿真交互平台!

Missing parentheses in

悬赏金币:2 nmvc 时间:2020-09-10 15:26

 

Missing parentheses in call to 'print'——python语法错误

回答(1)
  • 2020-09-10 15:28 admin

    这个消息的意思是你正在试图用python3.x来运行一个只用于python2.x版本的python脚本。

    print"Hello world"

    上面的语法在python3中是错误的。在python3中,你需要将helloworld加括号,正确的写法如下

    print("Hello world")



    举报


线

欢迎咨询

售前咨询
售后服务
技术咨询

18792739811