반응형
해결 방법
>>> from elementtidy.TidyHTMLTreeBuilder import TidyHTMLTreeBuilder as TB
>>> tb = TB()
>>> tb.feed("<p>Hello world")
>>> e= tb.close()
>>> e.find(".//{http://www.w3.org/1999/xhtml}p")
<Element {http://www.w3.org/1999/xhtml}p at 264eb8>
참조 페이지 https://stackoverflow.com/questions/285990
반응형
'파이썬' 카테고리의 다른 글
파이썬 Python Sets vs Lists (0) | 2020.11.30 |
---|---|
파이썬 여러 독립 변수가있는 Python curve_fit (0) | 2020.11.30 |
파이썬 How can I have autocomplete for python libraries in sublime (0) | 2020.11.30 |
파이썬 Pythons timeit으로 성능 테스트를 위해 코드 세그먼트의 시간을 어떻게 측정 할 수 있습니까? (0) | 2020.11.30 |
파이썬 for 루프에서 생성 된 Pandas 데이터 프레임 추가 (0) | 2020.11.30 |
댓글