sorted(L, key=lambda t: t[0]) sorted(L, key=lambda t: t[1], reverse=True)
用lambda,简洁!
Sign in to make a reply
米粽粽