主页
Python
Python Try Except 异常处理
demo_try_except3
运行 ❯
×
更改方向
保存代码
更改主题
#The try block does not raise any errors, so the else block is executed: try: print("Hello") except: print("Something went wrong") else: print("Nothing went wrong")
Hello
Nothing went wrong