Python中字典的键可以是字符串,元组,数字,但是不能是列表
PYTHON中字典的键
原创wx5e6caa8b9792d 博主文章分类:Python自动化开发 ©著作权
©著作权归作者所有:来自51CTO博客作者wx5e6caa8b9792d的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:day11_Python队列
下一篇:VNC
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
带你了解Python中的”容器“:列表、元组、集合、字典
Python中的容器可以解释为:一个包含多个数据项的实体。容器数据类型也称为复合数据类型。
python 列表 元组 集合 字典 -
【Python】字典 dict ① ( 字典定义 | 根据键获取字典中的值 | 定义嵌套字典 )
一、字典定义二、代码示例 - 字典定义三、根据键获取字典中的值四、定义嵌套字典
python 开发语言 字典 dict 数据容器 -
python 获取字典 通过值获取键 python获取字典的value值
python 实现让字典的value 成为列表如果想让字典的VALUE成为字典,只有最开始让其成为列表,如下面程序中的b>>> b={}>>> b={1:['sdad']}>>> b{1: ['sdad']}>>> b[1].append('dada')>>> b{1: ['sdad', 'd
python 获取字典 通过值获取键 python输入文字、成为字典 python json 字符串