nums = [554, 565, 367, 69, 869, 965, 506, 136, 913, 463, 987, 315, 967, 35]
print(nums)
y=0
x=0
min=nums[x]
while y<len(nums):
while x<len(nums):
if min>nums[x]:
c=x
min=nums[c]
x=x+1
x=0
tmp=nums[y]
nums[0]=min
y+=1
min=tmp
print(nums)
我很困惑为什么这段代码不会将数字从最低到最高排序。我应该做选择排序