使用 else 关键字定义没有出现错误时执行的代码块使用 else 关键字定义没有出现错误时执行的代码块#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")