假设我正在使用编写代码pathlib,并且我想遍历目录同一级别中的所有文件。 我可以通过两种方式做到这一点: p = pathlib.Path('/some/path') for f in p.iterdir(): ...
確定! 回上一頁