📜  扫描字符串文字时出现语法错误:eol - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.940000             🧑  作者: 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