要确定字典中是否存在指定的键,请使用关键字in。dict1 = { "name": "feifei", "gender": "girl", "age": 28}if "age" in dict1: print("列表中存在age键")执行结果:列表中存在age键