python学习(8) —— python的数据类型

02.02-python-data-types

常用数据类型 Common Data Types

类型 例子
整数 -100
浮点数 3.1416
字符串 'hello'
列表 [1, 1.2, 'hello']
字典 {'dogs': 5, 'pigs': 3}
Numpy数组 array([1, 2, 3])

其他类型 Others

类型 例子
长整型 1000000000000L
布尔型 True, False
元组 ('ring', 1000)
集合 {1, 2, 3}
Pandas类型 DataFrame, Series
自定义 Object Oriented Classes

猜你喜欢

转载自blog.csdn.net/weixin_43763724/article/details/88764682
今日推荐