Generate pretty diff html in Python

后端 未结 7 568
日久生厌
日久生厌 2020-12-02 07:50

I have two chunks of text that I would like to compare and see which words/lines have been added/removed/modified in Python (similar to a Wiki\'s Diff Output).

I ha

相关标签:
7条回答
  • 2020-12-02 08:50

    Since the .. library from google seams to have no active development any more, I suggest to use diff_py

    From the github page:

    The simple diff tool which is written by Python. The diff result can be printed in console or to html file.

    0 讨论(0)
提交回复
热议问题