📜  SyntaxError:扫描字符串文字时 EOL - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:01.327000             🧑  作者: Mango

代码示例2
def getName():
    print("My name is Chandler Bing)
getName()

# Output
  File "c:\Projects\Tryouts\listindexerror.py", line 2
    return "My name is Chandler Bing
                                    ^
SyntaxError: EOL while scanning string literal