运行 ❯
拥有你自己的 Python 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
try: x > 3 except: raise Exception("Something went wrong") print("The program stops when an error is raised.")
回溯 (最近一次调用最后)
文件 "demo_ref_keyword_try.py", 第 4 行, 在 <module>
raise Exception("Something went wrong")
Exception: Something went wrong