原文:菜鳥教程 Missing parentheses in call to 'print'

個人博客 地址:http: www.wenhaofan.com article gt gt gt print hello SyntaxError: Missing parentheses in call to print 在環境搭建章節中的路徑下載了最新的Python安裝包並完成安裝后,在cmd窗口執行菜鳥教程第一個 Python 程序中的代碼:print Hello, Python 提示 gt ...

2018-09-12 21:07 0 753 推薦指數:

查看詳情

Python Missing parentheses in call to 'print'

原來是因為Python2.X和Python3.X不兼容。 我安裝的是Python3.X,但是我試圖運行的卻是Python2.X 的代碼。 所以上面的語法在python3中是錯誤的。在python3中,你需要將print后面的語句加括號,所以截圖里直接放上了正確的敲法 ...

Wed Nov 21 01:10:00 CST 2018 0 2452
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM