Python课堂5--排序算法-冒泡排序
冒泡排序1.冒泡排序(简单)a = [5,8,9,3,2]for i in range(len(a)-1): for j in range(i+1,len(a)): if a[i] > a[j]: temp = a[i]#定义临时变量存储a[i] a[i] = a[j] a[j] = tem...