Python 文件重命名批量处理

import pdbnnimport shutilnimport osnimport xml.etree.ElementTree as ETnn# python 3.2nndir = “/home/Desktop/workpy”;nndef rename( files ):n tree = ET.parse(dir + “/zp/” + files)n root = tree.getr