python 3中的EOL是什么意思?

2024-10-02 00:22:06 发布

您现在位置:Python中文网/ 问答频道 /正文

据此,sitehttps://www.askpython.com/python/syntax-error-eol-while-scanning-string-literal,EOL的具体意思是“到达“行尾”,而扫描是指到达字符串的最后一个字符,并且没有遇到结尾引号。”

但在这个例子中,引用在开始时丢失了,为什么它仍然发生? 范例

>>> print(hello')
  
File "<stdin>", line 1
    print(hello')
                ^
SyntaxError: EOL while scanning string literal

Tags: comhellostringwwwerrorprintsyntaxwhile

热门问题