W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
x = "hello" if not type(x) is int: raise TypeError("Only integers are allowed")
x
x
=
"hello"
if
not
type
(
x
)
is
int
:
raise
TypeError
(
"Only integers are allowed"
)