python:给定目录中的所有文件,它还将遍历所有子目录
import os # Load the library module
logdir = os.getenv(
"logs"
) # Set the variable logdir by getting the value from the OS environment variable logs
logfile = "script_list.log" # Set the variable logfile
path = os.getenv