专题文章
时长:00:00更新时间:2020-11-27 14:23:15
之前在转换数据集格式的时候需要将json转换到xml文件,用lxml包进行操作非常方便。1.写xml文件;a) 用etree和objectify。,)etree.ElementTree(anno_tree).write(";text.xml";.pretty_print=True)。输出的test.xml文件内容如下:"。如果需要在anno_tree的基础上加其他标签的话用append即可。
查看详情