文本处理模块


本文地址: http://blog.csdn.net/caroline_wendy/article/details/27050431


Python文本处理模块, 使用四种内置库.

string.Template, 即string模板, 用户能够改动的模板, 在静态文本中插入动态值.

textwrap模块, 对从段落抽取的文本进行格式化输出.

re模块, 提供了完整的正則表達式库.

difflib模块, 依据加入\删除\改动的部分, 推断不同文本序列之间的详细区别.


Python - 文本处理模块


相关文章:

  • 2021-11-07
  • 2022-02-05
  • 2021-12-08
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2023-03-16
猜你喜欢
  • 2022-01-28
  • 2021-07-15
  • 2022-12-23
  • 2021-10-18
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案