numpy.lib.npyio.DataSource.abspath#

方法

lib.npyio.DataSource.abspath(path)[原始碼]#

Return absolute path of file in the DataSource directory.

If path is a URL, then abspath will return either the location the file exists locally or the location it would exist when opened using the open method.

參數:
pathstr 或 pathlib.Path

Can be a local file or a remote URL.

回傳值:
outstr

Complete path, including the DataSource destination directory.

Notes

The functionality is based on os.path.abspath.