题解 | #简单错误记录#
简单错误记录
http://www.nowcoder.com/practice/2baa6aba39214d6ea91a2e03dff3fbeb
num=[] name=[] name_num=[] while True: try: str1=input().split('\') str2=str1[-1].split(' ') if str2[0] not in name: num.append(str2[1]) if len(str2[0])>=16: name.append(str2[0][-16:]) else: name.append(str2[0]) name_num.append(1) else: name_num[name.index(str2[0])]+=1 #对应计数加1 except: break if len(num)>8: for x in range(1,len(num)): print(name[x],num[x],name_num[x]) else: for x in range(len(num)): print(name[x],num[x],name_num[x])