python
(1)
import pathlib
path_hello=pathlib.Path('F:\hello.py')
print(path_hello)
======================================================================
path_hello中是路径
(2)
keras.utils.get_file(fname, origin, untar=False, md5_hash=None, file_hash=None, cache_subdir='datasets', hash_algorithm='auto', extract=False, archive_format='auto', cache_dir=None)
========================================================================
Downloads a file from a URL if it not already in the cache.
(3)
Path.iterdir()
========================================================================
When the path points to a directory, yield path objects of the directory contents:
(4)
Path.glob(pattern)
========================
Glob the given relative pattern in the directory represented by this path, yielding all matching files (of any kind):
(5)for i,v in enumerate(y_data):
说明:同时从y_data中取出索引和值

浙公网安备 33010602011771号