python的基本数据类型及函数(Python3)

Python中的标准数据类型及相关用法(python3)


Python3 中有六个标准的数据类型:

  • Number(数字)
  • String(字符串)
  • List(列表)
  • Tuple(元组)
  • Set(集合)
  • Dictionary(字典)

按照数据类型是否可变进行分类:

  • 不可变数据(3 个):Number(数字)、String(字符串)、Tuple(元组)
  • 可变数据(3 个):List(列表)、Dictionary(字典)、Set(集合)

具体信息可参考python中文手册:http://www.runoob.com/manual/pythontutorial3/docs/html/
菜鸟教程:http://www.runoob.com/python3/python3-tutorial.html

猜你喜欢

转载自blog.csdn.net/lb0737/article/details/80955522