import pathlib
path_hello=pathlib.Path(‘F:\hello.py‘)
print(path_hello)
======================================================================
path_hello中是路径
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.
Path.
iterdir
()
========================================================================
When the path points to a directory, yield path objects of the directory contents:
原文:https://www.cnblogs.com/shencangzaiyunduan/p/11836923.html