提示錯誤:Missing parentheses in call to 'print'
提示錯誤:Missing parentheses in call to 'print' 網上搜了下是Python版本兼容性的問題,代碼前后加了括號就解決了; https://blog.csdn.net/sinat_27240687/article/details/71140844
提示錯誤:Missing parentheses in call to 'print' 網上搜了下是Python版本兼容性的問題,代碼前后加了括號就解決了; https://blog.csdn.net/sinat_27240687/article/details/71140844
2018-09-16
舉報
2018-09-16
在python2.x 系列中,print語句不需要加括號,即print 'hello world'
而在Python 3.x 系列則需要,即:print('hello world')
單引號和雙引號未做變化
據官方消息,Python 2.x 系列將在不久后停止更新,所以用3.x系列是好選擇