#!/usr/bin/env python
# -*- coding: utf-8 -*-
data=[25,18,20,90,74,76,79,80,95,150,192,144]
#方法一
# j=1
# while j<len(data):
# for i in range(len(data)-j):
# if data[i]>data[i+1]:
# temp=data[i+1]
# data[i+1]=data[i]
# data[i]=temp
# j+=1
# print(data)
#方法二
for j in range(1,len(data)):
for i in range(len(data)-j):
if data[i]>data[i+1]:
temp=data[i+1]
data[i+1]=data[i]
data[i]=temp
print(data)