下列程序的运行结果是( )。lst = ['one', 'two', 'three', 'four', 'five', 'six'] def f(s): return len(s) res = sorted(lst, key=f) print(res)
选项:
A:['one', 'two', 'six', 'four', 'five', 'three'];
B:['one', 'two', 'three', 'four', 'five', 'six'] ;
C:['five', 'four', 'one', 'six', 'three', 'two'];
D:['two', 'three', 'six', 'one', 'four', 'five']
发布时间:2024-05-08 23:40:38