题解 | #简单错误记录#
简单错误记录
https://www.nowcoder.com/practice/2baa6aba39214d6ea91a2e03dff3fbeb
error_dict= {} while True: # for i in range(11): try: s = input().split() name , no = s name = name.split('\\')[-1][-16:] key = name + ' ' + no if key not in error_dict.keys(): error_dict.update({key:1}) else: error_dict[key] +=1 except: break for re in list(error_dict.keys())[-8:]: print(re+' '+ str(error_dict[re]))