dict中的get函数
dic = {"amd": "yes", "intel": "yyds"} ret = dic.get('amd', None) print(ret) ret = dic.get('yes', "Not find this") print(ret)