python第3天:数据类型

int 1,2,3用于计算。
bool:True,False,用户判断。
str:存储少量数据,进行操作
'fjdsal' '二哥','`13243','fdshklj'
'战三,李四,王二麻子。。。。'
list:储存大量的数据。
[1,2,3,'名字','12353234',[1,2,3]]
元祖:只读。
(1,2,3,'第三方',)
dict:字典{'name':'Break','age':16}
字典{'user1':[],'user2':[200,200,200,。。。。。。]}
集合:{1,2,34,'asdf'}

猜你喜欢

转载自www.cnblogs.com/breaki/p/9194799.html