python 错误之SyntaxError: Missing parentheses in call to 'print'
生活随笔
收集整理的這篇文章主要介紹了
python 错误之SyntaxError: Missing parentheses in call to 'print'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
SyntaxError: Missing parentheses in call to 'print'
由于python的版本差異,造成的錯誤。
python2:
print "hello python!"
python3:
print ("hello python!")
?
?
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> print "hello"
SyntaxError: Missing parentheses in call to 'print'
>>> print ("hello")
hello
?
轉載于:https://www.cnblogs.com/myis55555/p/6656310.html
總結
以上是生活随笔為你收集整理的python 错误之SyntaxError: Missing parentheses in call to 'print'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 求一个霸气经典语句个性签名。
- 下一篇: 顺丰首重多少钱啊?