1. 程式人生 > >Python 文件對比差異

Python 文件對比差異

hot 文件 python encoding int odin gpo deploy efault

# encoding=utf-8
import sys
reload(sys)
sys.setdefaultencoding(‘utf-8‘)

import os

dd=None
for rt, dirs, files in os.walk(u‘E:\對比\web.deploy-1.0-SNAPSHOT\BOOT-INF\lib‘):
    dd = files
for rt, dirs, files in os.walk(u‘E:\威龍\BOOT-INF\lib‘):

    for f in files:
        if f not in dd:
            print(f)

  

Python 文件對比差異