数据类型
- 数值
- int
- float
- 布尔
- True
- False
- str
- list
- tuple
- set
- dict
# list -- 列表
c = [10, 20, 30]
# tuple -- 元组
d = (10, 20, 30)
# set --集合
e = {10, 20, 30}
# dict -- 字典 -- 键值对
f = {'name': 'TOM', 'AGE': 18}
print(type(f)) # 输出<class 'dict'>
# list -- 列表
c = [10, 20, 30]
# tuple -- 元组
d = (10, 20, 30)
# set --集合
e = {10, 20, 30}
# dict -- 字典 -- 键值对
f = {'name': 'TOM', 'AGE': 18}
print(type(f)) # 输出<class 'dict'>