# -*- coding: utf-8 -*- #author:v def sywmemeda(l): #list 冒泡排序 length = len(l) for i in range(length-1,0,-1): print(i) for j in range(i): if l[j] > l[j+1]: l[j],l[j+1] = l[j+1],l[j] import random list=[] i=0 while i<10: i+=1 list.append(random.randint(1,1000)) print(list) MAX=max(list) list.remove(MAX) MAX1=max(list) print"The maximum number of two in a random number is :" ,MAX,MAX1