2021
05-23
05-23
python 生成xml文件,以及美化的实例代码
看代码吧~#-*-coding:utf-8-*-importosimportjsonimportnumpyasnp#fromxml.etreeimportElementTreeasetreefromxml.etree.ElementTreeimportElementfromxml.etree.ElementTreeimportSubElementfromxml.etree.ElementTreeimportElementTreeimagePath=r'E:\Desktop\SteelCoilsDetection\test\images'jsonPath=r'E:\Desktop\SteelCoilsDetection\test\json'savePath=r'E:\Desktop\SteelCoilsDetection...
继续阅读 >