所有 Python 问题都可以用 «换 Python 3» 解决?
$ ipython
Python 3.4.1 (default, Aug 20 2014, 12:12:32)
Type "copyright", "credits" or "license" for more information.
In [1]: import xml.etree.ElementTree as ET
In [2]: ET.parse('test.xml')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-df5d74dfe4aa> in <module>()
----> 1 ET.parse('test.xml')
/Users/fghzpqm/.pyenv/versions/3.4.1/lib/python3.4/xml/etree/
ElementTree.py in parse(source, parser)
1185 """
1186 tree = ElementTree()
-> 1187 tree.parse(source, parser)
1188 return tree
1189
/Users/fghzpqm/.pyenv/versions/3.4.1/lib/python3.4/xml/etree/
ElementTree.py in parse(self, source, parser)
596 # It can be used to parse the whole source without feeding
597 # it with chunks.
--> 598 self._root = parser._parse_whole(source)
599 return self._root
600 while True:
ValueError: multi-byte encodings are not supported