Study Notes (09): NumPy data analysis -NumPy create an array of methods -loadtxt

Learning immediately: https://edu.csdn.net/course/play/25878/316058?utm_source=blogtoedu

loadtext:

      csv file

      txt file inside

      1,2,3

       4,5,6

with open('test.txt') as f:

       a1=np.loadtxt(f,dtype=int,delimter=',')

       print(a1)

      

Published 24 original articles · won praise 8 · views 1172

Guess you like

Origin blog.csdn.net/qq_41739233/article/details/104241015