通过Python模块filecmp 对文件比较的实现方法 filecmp定义了两个函数,用于方便地比较文件与文件夹: filecmp.cmp(f1,f2[,shallow]) python模块filecmp