题解 | #简单错误记录#
简单错误记录
https://www.nowcoder.com/practice/2baa6aba39214d6ea91a2e03dff3fbeb
dict1 = {}
while True:
try:
last = input().split("\\")[-1]
key = last.split(" ")[0][-16:] + " " + last.split(" ")[1]
dict1[key] = dict1.get(key, 0) + 1
except:
break
for key in list(dict1.keys())[-8:]:
print(key, dict1[key])


查看5道真题和解析