(blk: dict)
| 2538 | |
| 2539 | |
| 2540 | def fmt_block(blk: dict): |
| 2541 | print(f"路径: {blk['path']}") |
| 2542 | print(f"锚点: ^{blk['anchor']} 类型: {blk['kind']} 行: {blk['line_start']}-{blk['line_end']}") |
| 2543 | print() |
| 2544 | print("-" * 60) |
| 2545 | print(blk["content"]) |
| 2546 | |
| 2547 | |
| 2548 | def fmt_blocks(data: dict): |