题解 | #有序的列表#
有序的列表
https://www.nowcoder.com/practice/855d960ba868480ba6e626914018ded4
my_list = ['P','y','t','h','o','n'] print(sorted(my_list)) print(my_list) my_list.sort(reverse=True) print(my_list)
有序的列表
https://www.nowcoder.com/practice/855d960ba868480ba6e626914018ded4
my_list = ['P','y','t','h','o','n'] print(sorted(my_list)) print(my_list) my_list.sort(reverse=True) print(my_list)
相关推荐