用于生成表示两个可比较项序列之间差异的操作增量的实验diff库。
deltas的Python项目详细描述
一个开放许可(mit)库,用于生成delta(也称为序列 表示两个可比序列之间的差异 代币。
- 安装:pip install deltas
- repo:http://github.com/halfak/Deltas
- 文档:http://pythonhosted.org/deltas
- 注意:此库需要Python3.3或更新版本
此库用于进行实验性差异检测 策略更容易获得。目前有两种策略可供选择:
- deltas.sequence_matcher.diff(a, b):
- 围绕difflib.sequencematcher运行的无耻包装器 在deltas结构中
- deltas.segment_matcher.diff(a, b, segmenter=None):
- 设计用于检测块移动的广义差分检测器 以及基于Segmenter使用的副本。
Example: | ^{pr 1}$ |
---|