# 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-SNAPSHOTBOOT-INFlib'): dd = files for rt, dirs, files in os.walk(u'E:威龙BOOT-INFlib'): for f in files: if f not in dd: print(f)