首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
冒泡排序--Python
冒泡排序--Python
tech
2023-09-26
105
def bubbleSort(a): length = len(a) for i in range(length): for j in range(length - 1 - i): if a[j] > a[j + 1]: a[j], a[j+1] = a[j+1], a[j] return a
参考:
https://www.cnblogs.com/bigdata-stone/p/10464243.html
转载请注明原文地址:https://tech.qufami.com/read-12783.html
最新回复
(
0
)