收起
list1 = input().strip().split() dict1 = {} for i in list1: name, tel = i.split(',') dict1[name] = tel # print(dict1) name = input().strip() print(dict1[name])
报告相同问题?