- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 一个简单的Python二分查找|插入包 - bisect
上来就是源码:"""Bisection algorithms."""def insort_right(a, x, lo=0, hi=None): """Insert item x in list a, and keep it sorted assuming a is sorted. If x is already in a, insert it to the right of the rightmost x. Optional args lo (default 0) a
2021-07-06 17:30:43 219
原创 Python排序方式
Python排序多属性排序自定义规则排序开篇先介绍Python的两个排序函数:sort() 和 sorted(),其中前者是类成员函数,后者是Python语言的内置函数;两者的返回值不同。它们都包含 key 和 reverse 两个参数,key 参数定义了排序规则,reverse 参数定义排序方式(正序-False 或者 逆序-True),默认情况下 reverse = False。(k...
2020-03-11 17:44:10 343
ustc软院图像实验.zip
2020-07-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人