summing up values of columns from multiple files

后端 未结 3 1595
遥遥无期
遥遥无期 2021-01-15 01:55

I have a small problem here, I\'m trying to sum up entries from multiple files (50), and each of them contain 3 columns. for example, using the first 3 files: file1.txt, fi

3条回答
  •  無奈伤痛
    2021-01-15 02:08

    http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html load into numpy array and then sum arrays.

提交回复
热议问题