l=[int(i) for i in input().split()]
#输入数字串
综合运用循环结构、列表实现以下程序:
(1)冒泡排序
l=[int(i) for i in input().split()]
for i in range(len(l)-1):
for j in range(len(l)-i-1):
if l[j]>l[j+1]:
l[j],l[j+1]=l[j+1],l[j]
print('排序后:',l)
(2)选择排序
l=[int(i) for i in input().split()]
for i in range(len(l)-1):
for j in range(i+1,len(l)):
if l[i]>l[j]:
l[i],l[j]=l[j],l[i]
print('排序后:',l)
(数组?数字串?)