Python
pyRPG
编程爱好者
展开
-
快速排序
这里写自定义目录标题快速排序算法算法介绍代码快排、冒泡、希尔的排序测试快速排序算法算法介绍代码def KSPX(start1,end1): global ybsb #print("a = ",a) #print("start1=", start1, "end1=", end1) #MOT(a,start1, int(len(a) / 2), end1) if start1 ...原创 2020-05-17 13:21:31 · 163 阅读 · 0 评论 -
自制冒泡排序算法(python3)
代码:a = [1,9,8,67,4638,10,123,7]#要排序的列表,可以自己写a1 = a[:]j = len(a)for ic in range(j-1,-1,-1): for zp in range(j): if a[ic] < a[ic - zp]: a[ic],a[ic - zp] = a[ic - zp],a[ic] #print("ic={...原创 2020-02-08 12:16:28 · 151 阅读 · 0 评论 -
如何用python写文本
以下方法对于二进制文件,.dll, .exe, 以及一些类型并不适用原创 2019-08-24 17:00:54 · 2182 阅读 · 2 评论