2019年2月22日

python --cookbook

摘要: 1 保存有限的历史记录,算是collections.deque的完美应用 2--最大最小 找出最大和最小 max(),min() 从前n个找出前m个最大/最小 heapq.nlargest()/heapq.nsmallest() 如果m接近n sorted(items)[m:] from colle 阅读全文

posted @ 2019-02-22 10:32 海豚竹一 阅读(187) 评论(0) 推荐(0)

导航