file1 = open('compare 3.txt')# lines3 = file1.readline()d = {}for line in fil1: key, value = line.strip().split(',') # 若这句出错改成(key, value) = line.strip().split(',') d[key]=valueprint d