Chen Jian

导航

 

array = [1,2,3,6,5,4,28,2,1,9,3,0,200,2,9,3,2,98,33,988,22,0,223,0,33,78,222,88,32,0,238,883,2,0,23]
for i in range(len(array)):
    for j in range(i):
        if array[j] > array[j + 1]:
            for jj in range(i):
                if array[jj] > array[j+1]:
                    array[jj],array[j+1] = array[j+1],array[jj]

posted on 2016-06-02 11:43  Chen Jian  阅读(374)  评论(0编辑  收藏  举报