執行 ❯
擁有你自己的 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