我得到一个错误:
./getXml.py: line 3: syntax error near unexpected token
(' ./getXml.py: line 3:
tree=ET.parse("/home/svc_quickbuild/Documents/test/CI-TT-PSA.P4CNS.U-MAP.AFRICA.NDS-8.0.0.meta.xml")'
当我尝试执行时:
import xml.etree.ElementTree as ET
tree=ET.parse("/home/svc_quickbuild/Documents/test/CI-TT-PSA.P4CNS.U-MAP.AFRICA.NDS-8.0.0.meta.xml")
root= tree.getroot();
first_tag=root.find('tns:navigationSoftwareCompatibilityList').text
print(first_tag)
目前没有回答
相关问题 更多 >
编程相关推荐