angrykola

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年12月15日

摘要: # coding:utf-8import os'''Modify the batch file name批量修改文件名字'''def RenameFile(TheFile,search_str,to_name): le = len(search_str) for the_file in os.listdir(TheFile): if the_file.find(search_str) != -1: print the_file key = the_file.find(search_str) if ke... 阅读全文
posted @ 2013-12-15 16:51 kolaman 阅读(207) 评论(0) 推荐(0)