16 lines
539 B
Python
16 lines
539 B
Python
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, tbls in sorted(by_file.items()):
|
|
print(f"\n==========================================")
|
|
print(f"=== {f} (총 {len(tbls)}개) ===")
|
|
print(f"==========================================")
|
|
for t in tbls:
|
|
print(f"L{t['line']:<5} | {t['title'][:40]:<40} | 행수: {t['rows_count']:<2} | 그룹: {t['groups']}")
|