def select_sort(li1) :
for i in range(len(li1)) :
for j in range(i+1,len(li1)) :
if li1[i] > li1[j] :
li1[i], li1[j] = li1[j], li1[i]
odd_num = [7,15,9,13,71,3,1]
print("정렬 전 :",odd_num)
select_sort(odd_num)
print("정렬 후 :",odd_num,"\n")
선택정렬 만들어봤어요~
g9191hc
작성일
22.02.05 06:31
조회수
189
댓글 0