这个错误消息是什么?在
我的代码
#!/usr/bin/python
from xml.dom.minidom import Document
def CreateXml(nameSpace, rootElementName):
xmlDoc = xml.dom.minidom.Document()
xmlRootElement = doc.createElementNS(nameSpace, rootElementName)
xmlDoc.appendChild(xmlRootElement)
return xmlDoc
错误是
^{pr2}$是因为它找不到我的python的路径吗?在
提前谢谢
您忘记了
import xml.dom.minidom
来导入xmlmindom模块。在相关问题 更多 >
编程相关推荐