实验四
with open('data6_1.txt','r',encoding='utf-8') as f:
n=[]
for line in f.readlines():
m=line.split()
n.append(m)
n.sort(key=lambda l:l[2],reverse=True)
with open('data6_2.txt','w+',encoding='utf-8') as s:
for i in n:
s.write(' '.join(i)+'\n')


实验七
不会呀
浙公网安备 33010602011771号