字典
任意否可以作为value
字典、元祖、列表不能作为key
key 重复时 只能保留一个
info= {
l:'qwe',
"k1":"345",
k2:[
kk1:123,
kk2:34,
{
q:234
5:77
}
],
True:"123"
}
字典是无序的。
字典支持删除
V = info['k1']
v2 = info[k2][2][q]
del info['k1']
for 循环
# for item in info:
# print(item)
#
# for item in info.keys():
# print(item)
# for item in info.values():
# print(item)
# for item in info.keys():
# print(item,info[item])
for k,v in info.items():
print (k, v)