在Python中,a = {},则a是( )数据类型?
查看答案
设有变量定义:x={1: 'east',2: 'west'},则变量x的数据类型是( )?
A. int
B. dict
C. str
D. set
student = dict(姓名='张三', 年龄=20, 性别='男'),则student的数据类型是?
A. 列表
B. 元组
C. 字典
D. 集合
下列选项有哪些可以是字典key的类型
A. set
B. int
C. tuple
D. float
字典的键可以是哪些数据类型?
A. 数字
B. 字符串
C. 元组
D. 列表