import sys from find_unclassified_grouped_tables import grouped_tables sys.stdout.reconfigure(encoding='utf-8') by_file = {} for gt in grouped_tables: by_file.setdefault(gt['file'], []).append(gt) for f in sorted(by_file.keys()): if f == '제9장_측량.md': continue print(f"\n=== {f} ({len(by_file[f])}개) ===") for t in by_file[f]: print(f"L{t['line']:<5} | {t['title'][:40]:<40} | 행수: {t['rows_count']:<2} | 그룹: {t['groups']}")