# 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)