top_artists.py 文件源码

python
阅读 14 收藏 0 点赞 0 评论 0

项目:crypto-forcast 作者: 7yl4r 项目源码 文件源码
def run(self):
        top_10 = nlargest(10, self._input_iterator())
        with self.output().open('w') as out_file:
            for streams, artist in top_10:
                out_line = '\t'.join([
                    str(self.date_interval.date_a),
                    str(self.date_interval.date_b),
                    artist,
                    str(streams)
                ])
                out_file.write((out_line + '\n'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号