INNER CODE UNIT · Python

print_results

voocel/ainovel-cli · scripts/check_chapter_wordcount.py:87

def print_results(results: list, min_words: int = 3000) -> None:
    """打印检查结果"""
    if not results:
        print('没有找到章节文件')
        return

    total_words = 0
    passed = 0
    failed = 0

    print('\n' + '=' * 60)
    print('章节字数检查报告')
    print('=' * 60)

    for result in results:
        if not result['exists']:
            print(f'\n❌ {result["file"]}')
            print(f'   {result["message"]}')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…