Numpy

1 import numpy as np
2 np.genfromtxt(fname, dtype=<type 'float'>, comments='#', delimiter=None, skip_header=0, skip_footer=0, converters=None, missing_values=None, filling_values=None, usecols=None, names=None, excludelist=None, deletechars=None, replace_space='_', autostrip=False, case_sensitive=True, defaultfmt='f%i', unpack=None, usemask=False, loose=True, invalid_raise=True, max_rows=None)

主要用于处理txt文件

numpy说明文档链接:https://docs.scipy.org/doc/numpy-1.13.0

posted on 2018-08-01 12:21  Alex_材料科学与工程  阅读(162)  评论(0编辑  收藏  举报

导航