diff --git a/novel_stats/novel_stats.py b/novel_stats/novel_stats.py index f32e4ae..3bc1034 100755 --- a/novel_stats/novel_stats.py +++ b/novel_stats/novel_stats.py @@ -73,7 +73,7 @@ def main(): chapter_status = status_by_chapter.get(chapter_number) print( - 'chapter {}: {} words{}'.format( + 'chapter {}: {:,} words{}'.format( chapter_number, chapter_word_count, ' ({})'.format(chapter_status) if chapter_status else '', @@ -86,12 +86,12 @@ def main(): if act_number is None: continue - print('act {}: {} words (~{}%)'.format(act_number, act_word_count, act_word_count * 100 // total_word_count)) + print('act {}: {:,} words (~{}%)'.format(act_number, act_word_count, act_word_count * 100 // total_word_count)) for status, status_word_count in word_count_by_status.items(): - print('{}: {} words (~{}%)'.format(status, status_word_count, status_word_count * 100 // total_word_count)) + print('{}: {:,} words (~{}%)'.format(status, status_word_count, status_word_count * 100 // total_word_count)) - print('total: {} words'.format(total_word_count)) + print('total: {:,} words'.format(total_word_count)) if __name__ == '__main__':