Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.DataSource.open

DataSource.open(path,mode='r',encoding=None,newline=None)[source]

Open and return file-like object.

Ifpath is an URL, it will be downloaded, stored in theDataSource directory and opened from there.

Parameters:
path:str

Local file path or URL to open.

mode:{‘r’, ‘w’, ‘a’}, optional

Mode to openpath. Mode ‘r’ for reading, ‘w’ for writing,‘a’ to append. Available modes depend on the type of objectspecified bypath. Default is ‘r’.

encoding:{None, str}, optional

Open text file with given encoding. The default encoding will bewhatio.open uses.

newline:{None, str}, optional

Newline to use when reading text file.

Returns:
out:file object

File object.

Previous topic

numpy.DataSource.exists

Next topic

numpy.lib.format

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp