微信扫一扫
a = [['apple', '3'], ['peach', '2'], ['pear', '1']] b = sorted(a, key=lambda x: x[1]) print(b)
相关推荐