def searchmin(arg):
arg_min=arg[0]
index_min=0
for index,row in enumerate(arg):
if arg_min>row:
arg_min=row
index_min=index
return arg_min,index_min #返回最小值和最小值的下标。
#以下是主程序
array=[12,34,1,67,0,89,55,90,30,51,78,92,25,43,101,96,88]
array1=[]
length_array=len(array)
for l in range(len(array)):
received=searchmin(array)
del array[received[1]]
array1.append(received[0])
print(array1)