資源簡(jiǎn)介
python 對(duì)比不同的txt文檔數(shù)據(jù) 不同的數(shù)據(jù)在html中高亮顯示
代碼片段和文件信息
#
import?difflib
import?sys
import?re
import??json
test=‘test.txt‘
a=open(test‘r‘).read()
#b=re.match(‘info‘a(chǎn))
#print(a)
b=re.search(r‘info‘a(chǎn)).group()
print(b?)
report=‘diff1_two_excel.html‘
b=open(test
評(píng)論
共有 條評(píng)論