例如: fileName = self.filePath + ‘\’ + allDir 原因: ‘\’ or ‘/’ 还是用这个吧: fileName = os.path.join( self.filePath ,allDir)