W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_try_except_2.py:
#The try block will generate a NameError, because x is not defined: try: print(x) except NameError: print("Variable x is not defined") except: print("Something else went wrong")