简单修改文件名python脚本

import os
import sys

path = "D:\emojis"

for (path,dirs,files) in os.walk(path):
    for filename in files:
        newname = "emoji_"+filename
        os.rename(path+"\\"+filename , "D:\new_emojis"+"\\"+newname)

  

posted @ 2014-06-04 17:04  lipeil  阅读(17842)  评论(0编辑  收藏  举报