diff算法在python中的实现 [英] diff algorithm implementation in python

查看:393
本文介绍了diff算法在python中的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我签出了Python 2.6的源代码,并且我想研究diff的实现。但是,我找不到正确的源文件。
能否将我指向任何包含算法实现的源文件?

I checked out the source code of Python 2.6, and I want to study the diff implementation. However, I can not find the right source file. Could any one point me to whichever source file contains the algorithm implementation?

推荐答案

如果使用在diff中实现python 您的意思是 difflib 模块,然后此处为来源

If by "diff implementation in Python" you mean the difflib module, then here is the source.

还有一个基于此模块的简单 diff 实现在Python源代码分发中。

There is also a simple diff implementation based on this module in the Python source distribution.

这篇关于diff算法在python中的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆