def show_report(self, top=3):
for exception in self.exceptions:
print('{}:'.format(exception))
edge_weightings = iteritems(self.edge_weightings[exception])
for __, (edge, weight) in zip(xrange(top), edge_weightings):
print(' {:.2f} | {}'.format(weight, edge))
评论列表
文章目录