np.loadtxt/savetxt

np.loadtxt

data4 = np.loadtxt('data_iq_link.csv',delimiter=',',dtype='complex',skiprows=1)
  • dtype=‘complex’ 读复数
  • skiprows=1 忽略前几行 Skip the first skiprows lines, including comments;
  • delimiterstr, optional ,The string used to separate values
  • usecol:usecols参数指定我们需要使用的列,用于提取文件中我们使用的数据,也就是说

你可能感兴趣的:(python,python,numpy)