#python 字典修改键(key)的方法
e={‘name’:‘alex’,‘age’:20}
#方法一(推荐):
e[‘c’]=e.pop(‘name’)
print(e)
引用:https://www.cnblogs.com/cherry-ning/articles/11220775.html
#python 字典修改键(key)的方法
e={‘name’:‘alex’,‘age’:20}
#方法一(推荐):
e[‘c’]=e.pop(‘name’)
print(e)
引用:https://www.cnblogs.com/cherry-ning/articles/11220775.html