def selection_sort(array):
for i in range(len(array)-1):
minnum=i
for j in range(i+1,len(array)):
if array[j]<array[minnun]:
minnum=j
if minnum!=j:
array[j],array[minnum]=array[minnun],array[j]
标签:sort,minnum,len,选择,range,array,排序 From: https://www.cnblogs.com/panfei-test-learn/p/17139261.html