print(name)
print( read_content(name))
infos.append(read_content(name))
xml = os.path.join(dir,name)
new_xml = new_dir + '/' + str(count) +'.xml'
img = xml.replace('xml','png')
new_img = new_dir + '/' + str(count) +'.png'
wd = 'cp' + ' ' + xml + ' ' + new_xml
os.system(wd)
wd = 'cp' + ' ' + img + ' ' + new_img
os.system(wd)
count +=1
python脚本使用Bash指令的一种方式
最新推荐文章于 2023-10-12 12:34:35 发布