#!/usr/bin/env python# -*- coding: utf-8 -*-import osdef trimfile(dir): for fn in os.listdir(dir): sfile = os.path.join(dir, fn) if os.path.isdir(sfile): trimfile(sfile) continue if '~' in fn: newfile = os.path.join(dir, fn[1:]) ope... Read More
posted @ 2012-04-27 10:14 张云贵 Views(1247) Comments(0) Diggs(0) Edit