📜  hwoto 忽略 python 代码示例中是否发生任何异常

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

代码示例1
try:
    print(invalid-variable)
except Exception:
    pass

print("Exception ignored")
OUTPUT