![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
huaxiangsiyi
这个作者很懒,什么都没留下…
展开
-
Python 排序1
冒泡排序(buble sort) import time from random import randint import matplotlib.pyplot as plt %matplotlib inline def _bubble_sort(nums:list,reverse = False): start = time.time() for i in range(...原创 2020-02-29 17:50:21 · 117 阅读 · 0 评论 -
Python 查找算法
递归查找 def bi_search_re(num_list,val): def bi_search(l, h): if(l > h): return -1 mid = (l + h) // 2 if(num_list[mid] == val): return mid ; ...原创 2020-02-29 17:39:43 · 117 阅读 · 0 评论