Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: python:SyntaxError:EOL,同时扫描字符串文字
读取文本文件时有时会出现此错误
SyntaxError:扫描字符串文字时 EOL
这是什么意思,我该如何解决?
EOL 的意思是“行尾”
您忘记关闭“stuff”或“stuff”类型的引号
喜欢
>>> print "hello File "<stdin>", line 1 print "hello ^ SyntaxError: EOL while scanning string literal >>> print "hello" hello
插入符号指出问题所在