点击运行
#!/usr/bin/python3 my_tuple_2 = ('a', 'ab', 'abc') max_length = max(my_tuple_2, key=lambda val: len(val)) print(max_length)
运行结果 :
正在执行...