Python3 代码
n = int(input())
l = [[]]*n
for i in range (n):
t = list(input().split())
l[i] = (int(t[0]), f'{float(t[1]):.2f}', t[2])
l.sort(key=lambda x: x[0])
for i in range (n):
for x in l[i]:
print (x, end = " ")
print ("")
学到了,原来sort还可以用key