字典里没有key为“零件”的条目klist = list(字典.keys())if “零件” in klist:____value = 字典["零件"]或者用get:value = 字典.get("零件", "没有这个key")