執行 ❯
擁有你自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
x = "hello" if not type(x) is int: raise TypeError("Only integers are allowed")
回溯 (最近一次呼叫最後)
檔案 "demo_ref_keyword_raise2.py", 第 4 行, 在 <module>
raise TypeError("Only integers are allowed")
TypeError: Only integers are allowed