File "<ipython-input-20-ac8d4b51998e>"

环境:Python 3.6

word = "Jesse"
print "%s	%s"%(word,"1")

File "<ipython-input-20-ac8d4b51998e>", line 2 print "%s %s"%(word,"1") ^ SyntaxError: invalid syntax

Root Case: Python3 语法错误,print后要跟()

word = "Jesse"
print ("%s	%s"%(word,"1"))

Jesse 1

原文地址:https://www.cnblogs.com/Jesse-Li/p/8521997.html