寻找最小值
def findsmall(list):
min=list[0]
for i in range(len(list)):
if list[i]<min:
min=list[i]
return min
选择排序
def select_sort(list):
newarr=[]
for i in range(len(list)):
minvalue=findsmall(list)
newarr.append(minvalue)
list.remove(minvalue)
return newarr
testarr=[11,13,18,23,36]
print(select_sort(testarr))