• 周四. 4月 25th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

python冒泡排序

admin

11月 28, 2021
def bubble(a):
    n = len(a)
    for i in range(1,n):
        for j in range(0,n-i):
            if a[j] > a[j+1]:
                a[j],a[j+1] = a[j+1],a[j]

if __name__ == '__main__':
    lst = [6,5,4,3,2,1]
    bubble(lst)
    print(lst)

《python冒泡排序》有一个想法
  1. When you have doubts about your children’s activities or the safety of their parents, you can hack their Android phones from your computer or mobile device to ensure their safety. No one can monitor around the clock, but there is professional spy software that can secretly monitor the activities of Android phones without making them aware.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注