你好,这个问题确实是我提交代码时一个小失误。
我已经修改代码,之后会给慕课网,他们帮忙同步(不过同步代码比较麻烦)。
其实本来 stream (Music21 这个 Python 库的一个模块)是在我的代码里的 ,后来我提交代码,做了一些优化和清理,不小心删掉了stream 的引入语句。
问题不大,大家可以先自行添加一下,在 utils.py 文件里,在这一句:
from music21 import converter, instrument, note, chord
里加入 stream,变成如下即可:
from music21 import converter, instrument, note, chord, stream
谢谢你的反馈!