题解 | #有序的列表#
有序的列表
https://www.nowcoder.com/practice/855d960ba868480ba6e626914018ded4
str = "Python" my_list = [char for char in str] print(sorted(my_list)) print(my_list) my_list.sort(reverse=True) print(my_list)
有序的列表
https://www.nowcoder.com/practice/855d960ba868480ba6e626914018ded4
str = "Python" my_list = [char for char in str] print(sorted(my_list)) print(my_list) my_list.sort(reverse=True) print(my_list)
相关推荐