会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
水笔画家
博客园
首页
新随笔
联系
订阅
管理
2018年8月16日
2.8章 bisect 模块介绍
摘要: 1,用bisect 来搜索,内部算法就是二分查找法,时间复杂度O(log₂n) ##先看一个简单使用的例子 ##FluentPython 的例子 输出结果: 格式化字符串 官方文档介绍 2,bisect.insort() 向列表中插入值 输出:
阅读全文
posted @ 2018-08-16 11:48 水笔画家
阅读(726)
评论(0)
推荐(0)
2018年6月29日
scripy爬取给抽屉新热榜点赞
摘要: # -*- coding: utf-8 -*- import scrapy from scrapy.http.response.html import HtmlResponse # import sys,os,io # sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding='gb18030') from xdb.items import X...
阅读全文
posted @ 2018-06-29 20:17 水笔画家
阅读(276)
评论(0)
推荐(0)
公告