Python 字典(Dictionary) get() 函数返回指定键的值,如果值不在字典中返回默认值。
get()方法语法:dict.get(key, default=None),返回指定键的值,如果值不在字典中返回默认值None。
Python 字典(Dictionary) get()方法
原文:https://www.cnblogs.com/shiheyuanfang/p/13222581.html