大家好,我是 python 语言的新手,我选择了以艰难的方式学习 python 来学习它并更好地理解......我对练习 25 感到困惑,当我们将代码直接导入终端时
>>> import ex25
>>> sentence = "All good things come to those who wait."
>>> words = ex25.break_words(sentence)
然后我得到一个属性错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'break_words'
我在 Windows 7 上使用 python 2.7 请帮助..... http://learnpythonthehardway.org/book/ex25.html