os.walk()
摘要:1、函数介绍 用来扫描某个指定目录下所包含的子目录和文件。 2、演示 文件夹内容: for dirname, _, filenames in os.walk('F:/jupyter/data/BrainTumor/no'): print(dirname) print(filenames) 结果显示:
阅读全文
posted @ 2022-11-29 21:44
posted @ 2022-11-29 21:44
posted @ 2022-10-02 16:07
posted @ 2022-10-02 15:19