📜  os walk 示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:06.653000             🧑  作者: Mango

代码示例1
import os
folder_path = r'C:\Test'
for root,dirs,files in os.walk(folder_path, topdown=True):
  print(root)
  print(dirs)
  print(files)