实验记录:
ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
解决方法:xml = etree.fromstring(xml_str)改成:xml = etree.fromstring(xml_str.encode(‘utf-8’))
01-08
6516
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-14
1803
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)