Discuss / Python / 作业

作业

Topic source

wwyforN

#1 Created at ... [Delete] [Delete and Lock User]

L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)]

L2 = sorted(L, key=lambda x : x[1],reverse=True) print(L2)


  • 1

Reply