相关链接

Python Data Types

用于存储数据集的四种数据类型

Python Sets / Python Lists / Python Dictionaries / Python Tuples

List、Set、Dictionary、Tuple:

Type Example Features
Tuple (1, 2, 3, 4) ordered, unchangeable, allow duplicates
List [1, 2, 3, 4] ordered, changeable, allow duplicates
Set {1, 2, 3, 4} unordered, unchangeable, do not allow duplicates
Dictionary {"a": 1, "b": 2, "c": "3", "d": "4"} unordered, changeable, does not allow duplicates

相关文章:

  • 2021-07-12
  • 2022-01-02
  • 2022-02-12
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-11-14
  • 2022-01-18
相关资源
相似解决方案