摘要:
今天c盘空间不足了,就想看看那个文件夹在浪费空间,可是右键属性一个一个太累了,就想试着写个脚本,如下:import osimport globimport sysdef getdirsize(dirname): '''give the directory name, return the size of it.''' size = 0 for (curdir, subdirs, files) in os.walk(dirname): for file in files: file = os.path.join(... 阅读全文
posted @ 2012-11-15 23:17
xiaobaibuhei
阅读(398)
评论(0)
推荐(0)

浙公网安备 33010602011771号