import random. def bubblesort(a):. i = len(a). while i!=0: j = 0. while j!=i-1: #print 'index j:',j. if(a[j+1]<a[j]):. temp = a[j+1]. a[j+1] =a[j].
確定! 回上一頁