代码如下:
try: x="She said "Surely."" print(x) except Exception: print("The wrong syntax.")
a[] ^ SyntaxError: invalid syntax
x="She said "Surely""
python中try及expect使用
原文:https://www.cnblogs.com/tomas-chen/p/12464577.html