a = int(input()) if a==-1: break # 遍历所有数组元素 arr.append(a) print(type(arr)) for i in range(len(arr)): # Last i elements are already in place for j in range(0, len(arr) - i - 1): if arr[j] > arr[j + 1]: arr[j], arr[j + 1] = arr[j + 1], arr[...