冒泡法排序 Bobble Sort

自已写的:

参考wiki写的,终于知道什么叫优雅了:

https://github.com/allenmo/python_study/blob/master/046_bubble_sort.py

https://github.com/allenmo/python_study/blob/master/047_bubble_sort_2.py

打赏