立即学习:https://edu.csdn.net/course/play/26676/338781?utm_source=blogtoedu
字典的方法使用:
get方法
setdefault方法
增加键值对:
update方法
删除字典方法:
del方法,pop方法 popitem方法 python3.6及以上字典是按照创建顺序排列的
立即学习:https://edu.csdn.net/course/play/26676/338781?utm_source=blogtoedu
字典的方法使用:
get方法
setdefault方法
增加键值对:
update方法
删除字典方法:
del方法,pop方法 popitem方法 python3.6及以上字典是按照创建顺序排列的