我是一名Python初學者。我在Windows 7上使用Python 3.2的最新版本。我發現print
,count
,raw_input("")
和其他許多人都顯示錯誤。以下是錯誤的示例:我在Python 3中得到了一個SyntaxError
>>> print "Any body to help"
File "<stdin>", line 1
print "Any body to help"
^
SyntaxError: invalid syntax
另請參見http://python3porting.com/differences.html – 2011-11-15 17:41:52
[用Python 3打印語法錯誤]的完全重複(http://stackoverflow.com/questions/826948/syntax-error-on-print -with-python-3)請在發佈問題之前進行搜索。 – 2011-11-15 17:42:52