python列出指定目录下的文件和子目录
# if you know the exact name:
import os
files = os.listdir('/path/to/dir/')
# if you want shell-style globbing:
import glob
files = glob.glob('/path/to/dir/*.html')
python列出指定目录下的文件和子目录
# if you know the exact name:
import os
files = os.listdir('/path/to/dir/')
# if you want shell-style globbing:
import glob
files = glob.glob('/path/to/dir/*.html')