zoukankan      html  css  js  c++  java
  • Python SyntaxError: Missing parentheses in call to 'print'

    下面的代码

    print "hello world"
    

    会出现下面的错误

    SyntaxError: Missing parentheses in call to 'print'
    

    因为写的代码和系统中的python不是一个版本的。
    python2系列可以支持

    print "hello world"
    

    python3系列的需要使用

    print("hello world")
    
  • 相关阅读:
    清单
    1
    s
    模块系统的演进
    改radio样式
    前端css库
    疑惑
    收藏
    事件
    社保档案
  • 原文地址:https://www.cnblogs.com/vercont/p/10210226.html
Copyright © 2011-2022 走看看