标签:sea ict delete none ems arc name add tde
1. definition:
dic = {‘name‘ = ‘alex‘}
2. add:
dic[‘age‘] = 21
dic.setdefault(‘key‘) = value
3.delete:
dic.pop(‘key‘)
del dic[‘key‘]
4.update;
dic.update(‘key‘)= value
5.search:
dic.keys()
dic.values()
dic.items()
for k,v in dic.items():
print k,v
dic.get(key,None)
标签:sea ict delete none ems arc name add tde
原文地址:https://www.cnblogs.com/jiraiya-gouketsumonogatari/p/10513636.html