arr = [99, 100, 101, 5, 3, 7, 9, 0] #整型数组
for i in range(0, len(arr), 1):
for j in range(0, len(arr)-i-1, 1):
if arr[j] > arr[j+1]:
temp = arr[j+1]
arr[j+1] = arr[j]
arr[j] = temp
for i in arr:
print(i, end="\t")
for i in range(0, len(arr), 1):
for j in range(0, len(arr)-i-1, 1):
if arr[j] > arr[j+1]:
temp = arr[j+1]
arr[j+1] = arr[j]
arr[j] = temp
for i in arr:
print(i, end="\t")