标签:name code div col class 目录 glob txt sub
一、glob
import glob for name in glob.glob(‘dir/*‘):#遍历该目录下所有子文件的名字 print (name)
dir/file.txt dir/file1.txt dir/file2.txt dir/filea.txt dir/fileb.txt dir/subdir
标签:name code div col class 目录 glob txt sub
原文地址:https://www.cnblogs.com/liuxiangyan/p/12609050.html