标签:冒泡排序 排序 range i+1 for int lis pre 冒泡
list=[1,4,3,6,0,33]
for j in range(0,len(list)-1):
for i in range(0,len(list)-1):
if list[i] > list[i+1]:
list[i],list[i+1]=list[i+1],list[i]
print(‘list_t‘,list)
print(‘list_j‘,list,j)
print(list)
标签:冒泡排序 排序 range i+1 for int lis pre 冒泡
原文地址:https://www.cnblogs.com/Shepherd-tiger/p/14186322.html