会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一笔一划82
博客园
首页
新随笔
联系
订阅
管理
2021年8月17日
python学习记录-三引号文本缩进及多行字符串正则匹配
摘要: from textwrap import dedent import re def text_indent(s): dedentString = lambda s: dedent(s[1:])[:-1] return dedentString(s) f = """<pre style="margin
阅读全文
posted @ 2021-08-17 09:03 一笔一划82
阅读(179)
评论(0)
推荐(0)
公告