# -*- 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

 

相关文章:

  • 2022-02-21
  • 2021-10-20
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案