会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
后视镜X
博客园
首页
新随笔
联系
订阅
管理
2022年3月13日
python cookbook 笔记//2 字符串和文本
摘要: import re re.split(r'[;,\s]\s*', line) str.startswith() str.startswith() re.match(r'\d+/\d+/\d+', text1) //匹配时间 re.sub('\s+', ' ', s) datepat = re.com
阅读全文
posted @ 2022-03-13 11:19 后视镜X
阅读(65)
评论(0)
推荐(0)
2022年3月12日
python cookbook 笔记//1 数据结构和算法
摘要: import heapq heapq.nsmallest(n, list, key = lambda s : s['price']) heapq.nlargest(n, list, key = lambda s : s['price']) heapq.heapify(list) //列表堆化 hea
阅读全文
posted @ 2022-03-12 23:12 后视镜X
阅读(341)
评论(0)
推荐(0)