python库基础
lzy#NitrogenousFish
这个人很懒,什么都没有留下~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
高强度快速入门numpy,节选自官方manual
高强度快速入门numpy起因2.2.2 Array Creation2.2.3 Printing Arrays2.2.4 Basic Operations2.2.5 Universal Functions2.2.6 Indexing, Slicing and Iterating2.3 Shape Manipulation2.3.1 Changing the shape of an array2.3.2 Stacking together different arrays2.3.3 Splitting one原创 2020-08-15 17:47:28 · 517 阅读 · 0 评论 -
heapq(python库学习)
模块heapq中一些重要的函数函 数描 述heappush(heap, x)将x压入堆heap中heappop(heap)从堆heap中弹出最小的元素heapify(heap)让列表具备堆特征,没有返回列表heapreplace(heap, x)弹出最小的元素,并将x压入堆heap中nlargest(n, iter)返回iter中n个最大的元素nsmallest(n, iter)返回iter中n个最小的元素import heapq创建原创 2020-06-30 11:17:42 · 534 阅读 · 0 评论
分享