组合数据类型

  • Python中常用的组合数据类型:集合(set)、序列(列表、元组、字符串)、映射(字典)
    二级python——(六)组合数据类型

集合

  • 无序组合,没有索引和位置概念,集合中元素可以动态增加和删除
  • 集合中元素不能重复(可以过滤掉重复的元素)
    二级python——(六)组合数据类型
    二级python——(六)组合数据类型

序列

  • 顺序关系
  • 可以重复
    二级python——(六)组合数据类型
    二级python——(六)组合数据类型

映射

  • 键-值/key-value
列表
  • 序列类型
  • list()
    二级python——(六)组合数据类型
    二级python——(六)组合数据类型
    二级python——(六)组合数据类型
字典
  • 映射关系
    二级python——(六)组合数据类型
    二级python——(六)组合数据类型

相关文章:

  • 2021-12-16
  • 2021-11-03
  • 2021-06-11
  • 2021-08-15
  • 2021-11-28
  • 2021-11-18
猜你喜欢
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案