删除空文件夹

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

import os
for root, dirs, files in os.walk(top, topdown=False):
	for name in dirs:
		try:
			os.rmdir(os.path.join(root, name))
		except:
			pass