dict = {"w": "Wang", "l": "Li", "h": "He", "c": "Cao", "d": "Duan"} num = input("") if num in dict: print(dict.pop(num)) else: print("Not Here")
输入一个字母 x,输出字母对应的性。python
于 2023-11-24 17:08:50 首次发布
dict = {"w": "Wang", "l": "Li", "h": "He", "c": "Cao", "d": "Duan"} num = input("") if num in dict: print(dict.pop(num)) else: print("Not Here")