本节书摘来自异步社区《python极客项目编程 》一书中的第1章,第1.5节,作者 [美] mahesh venkitachalam,王海鹏 译,更多章节内容可以访问云栖社区“异步社区”公众号查看。
下面是该程序的运行示例:
<code>$ python playlist.py --common test-data/maya.xml test-data/rating.xml</code>
下面是输出:
现在,让我们绘制这些音轨的一些统计数据。
<code>$ python playlist.py --stats test-data/rating.xml</code>
图1-1展示了这次运行的输出。
