主页
Python
Python type() 函数
demo_ref_type
运行 ❯
×
更改方向
保存代码
更改主题
a = ('apple', 'banana', 'cherry') b = "Hello World" c = 33 x = type(a) y = type(b) z = type(c) print(x) print(y) print(z)
<class 'tuple'>
<class 'str'>
<class 'int'>