python中dict[key] 存在key,但是报错:KeyError

改为使用:dict.get(key)

原文地址:https://www.cnblogs.com/lindsay-chh/p/4819358.html