Numpy常用API

Numpy常用API

Routines NumPy STable Manual

变量创建

类型转换

函数运算

文件读写

文本文件

  • numpy.savetxt

Save an array to a text file.

numpy.savetxt(fname, X, fmt='%.18e', delimiter=' ', newline='\n', header='', footer='', comments='# ', encoding=None)
  • numpy.loadtxt

Load data from a text file. Each row in the text file must have the same number of values.

numpy.loadtxt(fname, dtype=<class 'float'>, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0, encoding='bytes', max_rows=None, *, quotechar=None, like=None)

你可能感兴趣的:(numpy)