Python genfromtxt导入的矩阵之和

Python genfromtxt导入的矩阵之和,python,Python,我必须执行几个文件的平均值。。现在。。我没有找到计算平均数的方法。。。每个文件有100行。。。这是我到目前为止写的: def createFileList(self) : #create_file = call('ls alpha_mean/alpha_75 > output_alpha75.txt', shell=True) create_file = call('ls try > output.txt', shell=True)

我必须执行几个文件的平均值。。现在。。我没有找到计算平均数的方法。。。每个文件有100行。。。这是我到目前为止写的:

   def createFileList(self) :



        #create_file = call('ls alpha_mean/alpha_75 >  output_alpha75.txt', shell=True)
        create_file = call('ls try >  output.txt', shell=True)
        
        self.file_names = [] 

        with open('output.txt') as f:
            for line in f:
                self.file_names.append(line.split()[0])


    def processFile(self) :
        '''
            perform sum and dean divide for the number of champion in order
            to achieve a mean 
        '''
        
        temp = [0 for i in range(100)]

        load = [ 0 for i in range(self.bins)] #, temp = [],[]

        #temp = [] 
        #for filen,i in zip(self.file_names,range(2)):
        temp.append(np.genfromtxt('try/' + filen, usecols=(0,)))
但是如何使用此对象执行平均值>