主页
Python
Python Try Except 异常处理
demo_try_except
运行 ❯
×
更改方向
保存代码
更改主题
#The try block will generate an error, because x is not defined: try: print(x) except: print("An exception occurred")
An exception occurred