主页
Python
Python Try Except 异常处理
demo_try_except_error
运行 ❯
×
更改方向
保存代码
更改主题
#This will raise an exception, because x is not defined: print(x)
Traceback (most recent call last):
File "demo_try_except_error.py", line 3, in <module>
print(x)
NameError: name 'x' is not defined