我最近开始学习 Python,我不明白为什么 Python 会这样:
>>> “好的” '好的' >>> """好的""" '好的' >>>“不好” 文件“<stdin>”,第 1 行 “不好' ^ 语法错误:扫描字符串文字时 EOL >>> "不行""" '不好'
由于引号的数量不匹配,为什么最后一条语句不会出错?
python string quotes python-3.x
python ×1
python-3.x ×1
quotes ×1
string ×1