主页
Python
Python 数据类型
demo_type_list2
运行 ❯
×
更改方向
保存代码
更改主题
x = list(("apple", "banana", "cherry")) #display x: print(x) #display the data type of x: print(type(x))
['apple', 'banana', 'cherry']
<class 'list'>