04 Python数据类型

2021-07-04 11:07

阅读:456

标签:...   list   ssd   只读   int   bool   ict   集合   数据类型   

Python 数据型
1、 int: 1,2,3 ....
2、 bool: True False
3、 str: 存贮少量数据
‘asjkdh‘,‘工查‘
4、 list: 列表,存贮大量数据
[1,2,3,‘jhssd‘,[1,2,3],123]
5、元祖:只读列表
(1,2,3,‘sdfsd‘)
6、dict: 字典
{‘name‘:‘云姐‘,‘age‘:16}
{‘云姐‘:[22,‘we‘],‘二哥‘:[1,2,3,‘sd‘,[‘qwqw‘,12,34]]}
7、集合: 不常用
{1,2,3,‘sadasd‘,23}

04 Python数据类型

标签:...   list   ssd   只读   int   bool   ict   集合   数据类型   

原文地址:https://www.cnblogs.com/bydzxzy/p/9613164.html


评论


亲,登录后才可以留言!