标签:style blog color os for div sp log on
# -*- coding: cp936 -*- import sys,os,string d=0; path="F://test" srcfile=os.listdir(path) for i in srcfile: src=path+"//"+i dst=path+"//"+str(d)+".txt" os.rename(src,dst) d=d+1; print src+"->"+dst
标签:style blog color os for div sp log on
原文地址:http://www.cnblogs.com/verstin/p/3970927.html