Windows 7 に Python 3.3.2 をクリーン インストールしました。ドキュメントの例を使用して、 html.parser.HTMLParserをインポートしようとしています: Simple HTML and XHTML parser
しかし、私はエラーが発生しています:
>>> from html.parser import HTMLParser
aee4
gg2
Traceback (most recent call last):
File "htmlang.py", line 1, in <module>
from html.parser import HTMLParser
File "c:\Python33\lib\html\parser.py", line 13, in <module>
import warnings
File "c:\Python33\lib\warnings.py", line 6, in <module>
import linecache
File "c:\Python33\lib\linecache.py", line 10, in <module>
import tokenize
File "c:\Python33\lib\tokenize.py", line 37, in <module>
__all__ = token.__all__ + ["COMMENT", "tokenize", "detect_encoding",
AttributeError: 'module' object has no attribute '__all__'
インタープリターを開いて、インポート行を入力しました。期待どおりに動作しないのはなぜですか? 奇妙な "aee4" および "gg2" 文字列を表示するのはなぜですか?