Discuss / Python / 练习

练习

Topic source

米粽粽

#1 Created at ... [Delete] [Delete and Lock User]
sorted(L, key=lambda t: t[0])
sorted(L, key=lambda t: t[1], reverse=True)

用lambda,简洁!


  • 1

Reply