Discuss / Python / 作业

作业

Topic source

Solo_Travel

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

L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)] L1=sorted(L,key=lambda s:s[0]) L2=sorted(L,key=lambda s:s[1])


  • 1

Reply