本节书摘来自异步社区《Python极客项目编程 》一书中的第1章,第1.5节,作者 [美] Mahesh Venkitachalam,王海鹏 译,更多章节内容可以访问云栖社区“异步社区”公众号查看。
1.5 运行程序
下面是该程序的运行示例:
$ python playlist.py --common test-data/maya.xml test-data/rating.xml
下面是输出:
5 common tracks found. Track names written to common.txt.
$ cat common.txt
God Shuffled His Feet
Rubric
Floe
Stairway To Heaven
Pi's Lullaby
moksha:playlist mahesh$
现在,让我们绘制这些音轨的一些统计数据。
$ python playlist.py --stats test-data/rating.xml
图1-1展示了这次运行的输出。
