Exclude subfolders and files

前端 未结 0 895
没有蜡笔的小新
没有蜡笔的小新 2020-12-17 02:37

I have a little problem with excludes files and subfolders.

for x in os.walk(\'core\'):
for y in glob.glob(os.path.join(x[0], \'*.py\')):
    s = y.replace(\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题