import codecs
filecp = codecs.open('sunspot.dat', encoding ='utf-8')
file_data = np.loadtxt(filecp, usecols=(0,1),skiprows=1)
x = file_data[:,0]
y = file_data[:,1]
Python读取txt文件中的两列数据(无title)
猜你喜欢
转载自blog.csdn.net/weixin_45577825/article/details/120319712
今日推荐
周排行