发布时间:2019-09-19 08:02:35编辑:auto阅读(1775)
#!/usr/bin/python
# -*- coding:UTF-8 -*-
def maopao(numbers):
for j in xrange(len(numbers)-1,-1,-1):
for i in xrange(j):
if(numbers[i] > numbers[i+1]):
numbers[i],numbers[i+1] = numbers[i+1],numbers[i]
print numbers
def main():
number = raw_input("enter some num seperate with split").split(",")
maopao(number)
if __name__ == '__main__':
main()
上一篇: Python file 方法
下一篇: ubuntu gns3 与vbox连接
47840
46386
37279
34729
29312
25970
24909
19948
19541
18020
5790°
6411°
5926°
5960°
7063°
5910°
5942°
6437°
6404°
7776°