修改xml文件部分内容
#coding=utf-8
import xml.etree.ElementTree as ET
import glob
pathload=os.getcwd()
print pathload
path=glob.glob(pathload+'/Annotations/*.xml')
print path
for pathname in path:
#读取待修改文件
updateTree = ET.parse(pathname)
root = updateTree.getroot()
#修改sub1的name属性
sub1 = root.find("path")
print sub1.text
sub1.text = pathload+'/JPEGImages/BloodImage_00073.jpg'
print sub1.text
# updateTree.write(pathname)