Alpha_Organizer.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Automation-Scripts 作者: MohammedRashad 项目源码 文件源码
def clean():
    absolute_path = os.path.abspath(__file__)
    mypath = os.path.dirname(absolute_path)

    for root, dirs, files in os.walk(mypath,topdown=False):
        for name in dirs:
            fname = join(root,name)
            if not os.listdir(fname): #to check wither the dir is empty
                 os.removedirs(fname)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号