标签:sp for on bs ef as 算法 nbsp python
def buss(num):
for j in xrange(len(num)-1,-1,-1):
for i in xrange(j):
if num[i]>num[i+1]:
num[i],num[i+1]=num[i+1],num[i]
print num
def main():
num=[12,23,43,5,3]
buss(num)
if __name__==‘__main__‘:
main()
标签:sp for on bs ef as 算法 nbsp python
原文地址:http://www.cnblogs.com/mhxy13867806343/p/4156414.html