题解 | #记录喜好的字典#
记录喜好的字典
https://www.nowcoder.com/practice/b48ac65b70534898a2900dfad254d8d9
dic = dict( NiuNiu="Java", NiuMei="Python", Niukele="CPP", NiuNeng="Python", Tony="Java", Anna="CPP", Allen="CPP", ) ob = str(input()) nums = [x for x in dic.keys() if dic.get(x) == ob ] print("Nobody" if len(nums) == 0 else nums )