def sort(list):
for i in range(len(list)):
for j in range(len(list) - i - 1):
if list[j] < list[j + 1]:
list[j], list[j + 1] = list[j + 1], list[j]
return list
Sort of bubble sort python
Guess you like
Origin www.cnblogs.com/szj666/p/11141040.html
Recommended
Ranking