python 重命名文件
#-*-coding:gbk-*-
import os
cur_path = os.getcwd()
lists = os.listdir( cur_path )
for f in lists:
if f != 'ren.py':
print cur_path
cur_file = cur_path + '\\' + f
new_file = cur_file.replace( '副本', '' )
os.rename(cur_file, new_file)