0
点赞
收藏
分享

微信扫一扫

Python的7种数据类型


摘录于《Python高效开发实战:Django、Tornado、Flask、Twisted》书籍,回顾知识点,供大家参考。

1、Number类型

Python的7种数据类型_开发实战


Python的7种数据类型_开发实战_02


Python的7种数据类型_List_03


Python的7种数据类型_Python_04


Python的7种数据类型_List_05


移位计算:

将数字3转为2进制表示:11

往右移一位为:1

往左移一位为:110

总结为:往左移几位就补多少个0,往右移动几位就是从右往左第几为抹掉。

Python的7种数据类型_开发实战_06


Python的7种数据类型_List_07

2、Sequence 类型簇

Python的7种数据类型_开发实战_08


Python的7种数据类型_Python_09


Python的7种数据类型_List_10

3、String 类型

Python的7种数据类型_开发实战_11


Python的7种数据类型_Python_12


Python的7种数据类型_开发实战_13


Python的7种数据类型_List_14


Python的7种数据类型_Python_15


Python的7种数据类型_开发实战_16


Python的7种数据类型_List_17


Python的7种数据类型_Python_18


Python的7种数据类型_开发实战_19

4、Tuple类型

Python的7种数据类型_开发实战_20

5、List 类型

Python的7种数据类型_开发实战_21


Python的7种数据类型_开发实战_22

6、Set 类型

Python的7种数据类型_List_23


Python的7种数据类型_开发实战_24


Python的7种数据类型_List_25

7、Dictionary 类型

Python的7种数据类型_List_26


Python的7种数据类型_开发实战_27

《Python高效开发实战:Django、Tornado、Flask、Twisted》


举报

相关推荐

0 条评论