整理文件python
2015-12-16 本文已影响58人
liu_bo
#--*-- encoding:utf-8 --*--
import os,re,shutil
for s in os.listdir('.'):
if s.endswith(".webloc"):
print s
shutil.move(s,'./web')
#--*-- encoding:utf-8 --*--
import os,re,shutil
for s in os.listdir('.'):
if s.endswith(".webloc"):
print s
shutil.move(s,'./web')