a=[3,9,6,8,4]
for i in range(0,3):
for j in range(0,4-i):
if a[j]>a[j+1]:
t=a[j]
a[j]=a[j+1]
a[j+1]=t
print(a[i], end=′ ′)
微信扫码预览、分享更方便