模块“ xml.dom”没有属性“节点”

时间:2018-12-02 16:21:51

标签: python xml python-3.x attributeerror minidom

我想在Python 3.7中使用模块xml,但是出现以下错误:

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from xml.dom import minidom
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from xml.dom import minidom
  File "C:\Users\EMurairi18\AppData\Local\Programs\Python\Python37-32\lib\xml\dom\minidom.py", line 30, in <module>
    _nodeTypes_with_children = (xml.dom.Node.ELEMENT_NODE,
AttributeError: module 'xml.dom' has no attribute 'Node'
>>> 

这有什么问题?

0 个答案:

没有答案