热情鲜花

文章
7
资源
1
加入时间
4年0月7天

冒泡排序(Bubble Sort)

#!/usr/bin/env python# -*- coding: utf-8 -*-# @Author : guangxu.qi# @Time : 2020/9/15 14:27# @FileName: bubble_sort.py# @Description:def bubble_sort(alist): for i in range(len(alist) - 1): for j in range(len(alist) - 1 - i):