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

环境:Python 3.6

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

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

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

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

Jesse 1

posted @ 2018-03-07 13:59  Jesse_Li  阅读(1753)  评论(0编辑  收藏  举报