为了
l = ["a", "b"]
def bigger(x):
if x == "a":
return 1
return 2
print(max(bigger(letter) for letter in l)) #A
print(max(l, key=bigger)) #B
print(max(l, key=lambda x: bigger(x))) #C
输出:
2
b
b
A在做什么而B和C没有?B和C有什么区别?