我在BeautifulSoup4
Python 3.3.2
MAC OSX 10.8
>>> from bs4 import BeautifulSoup
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/bs4/__init__.py", line 359
print soup.prettify()
^
SyntaxError: invalid syntax
上遇到此问题:
{{1}}
我遇到了this旧帖子,声称问题将通过Python 3.3修复,也许这是回归?