首页 > 解决方案 > 使用操作系统访问文件夹

问题描述

我想使用 for 循环和 os.listdir() 遍历文件夹,我只是想知道究竟要在括号中写入什么来访问特定文件。谢谢!

标签: pythonoperating-system

解决方案


你可以很容易地用谷歌搜索。https://www.tutorialspoint.com/python/os_listdir.htm 您只需要括号中的路径。


推荐阅读