This topic created in 2889 days ago, the information mentioned may be changed or developed.
两个文件都是 1 万行,每一行的数据都不一样,
d = difflib.HtmlDiff()
d.make_file(file1,file2)
使用 difflib 对比生成 html,发现速度奇慢。。。大概 30 分钟
请教下有没有其他方法?谢谢
3 replies • 2018-06-06 17:31:10 +08:00
 |
|
1
wplct Jun 6, 2018
??? 要不 用 set ?
|
 |
|
2
karlxu Jun 6, 2018
@ wplct set 集合去重?我不需要去重。。。只是两个文件对比。
|
 |
|
3
wplct Jun 6, 2018
set 的 交集 并集操作了解一下 set1 & set2
|