[英]How to diff between 2 html codes with Python?
I'm wondering what is the best way to do a Diff on two HTML codes? 我想知道对两个HTML代码进行区分的最好方法是什么? I prefer to get the output as Python object and not as a HTML report or something like this. 我更喜欢将输出作为Python对象而不是HTML报告或类似的东西来获取。
You can use difflib library available as a part of python standard library. 您可以使用difflib库作为python标准库的一部分。 Refer it at https://docs.python.org/2/library/difflib.html 在https://docs.python.org/2/library/difflib.html上引用它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.