小编b91*_*007的帖子

Python有同名密钥的字典?

我需要一个字典,它可能对某些键具有相同的名称,并在这种情况下引用键时返回值列表.例如

print mydict['key']
[1,2,3,4,5,6]
Run Code Online (Sandbox Code Playgroud)

python dictionary key

12
推荐指数
3
解决办法
1万
查看次数

标签 统计

dictionary ×1

key ×1

python ×1