主页
Python
Python except 关键词
demo_ref_keyword_except
运行 ❯
×
更改方向
保存代码
更改主题
# (x > 3) will raise an error because x is not defined: try: x > 3 except: print("Something went wrong") print("Even if it raised an error, the program keeps running")
Something went wrong
Even if it raised an error, the program keeps running