题解 | #有序的列表#
有序的列表
https://www.nowcoder.com/practice/855d960ba868480ba6e626914018ded4
st = 'Python'
my_list = list(st)
print(sorted(my_list))
print(my_list)
my_list.sort(reverse=True)
print(my_list)
有序的列表
https://www.nowcoder.com/practice/855d960ba868480ba6e626914018ded4
st = 'Python'
my_list = list(st)
print(sorted(my_list))
print(my_list)
my_list.sort(reverse=True)
print(my_list)
相关推荐