点击运行
try: x > 3 except: raise Exception("Something went wrong") print("The program stops when an error is raised.")
运行结果