import os
n = 0
for root, dirs, files in os.walk('./'):
    for name in files:
        if(name.endswith(".md")):
            n += 1
            print(n)
            os.remove(os.path.join(root, name))
添加批量递归删除*.md的脚本