ZhangZhihui's Blog  
>>> import glob
>>> glob.glob('*', recursive=True)
['a.txt', 'bbb']
>>> glob.glob('**', recursive=True)
['a.txt', 'bbb', 'bbb\\b.txt', 'bbb\\ccc', 'bbb\\ccc\\c.txt']
>>>

 

posted on 2022-03-07 11:30  ZhangZhihuiAAA  阅读(17)  评论(0编辑  收藏  举报