I can't import xml.dom.minidom in PyCharm. What could I Try?

前端 未结 2 1325
醉梦人生
醉梦人生 2021-01-18 17:46

I\'m trying to import xml.dom.minidom but pycharm doesn\'t find it, altough it finds xml.entree / xml.parser / xml.sax.

The rest of the standart libraries work all f

2条回答
  •  囚心锁ツ
    2021-01-18 17:53

    My recommendation is to just put the following around the imports until Pycharm fixes the bug.

    # noinspection PyUnresolvedReferences
    from xml.dom.minidom import Document
    # noinspection PyUnresolvedReferences
    from xml.dom.minidom import Element
    

提交回复
热议问题