You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
504 B
12 lines
504 B
|
7 days ago
|
# -*- coding: utf-8 -*-
|
||
|
|
# t07-extract3.py — A1X-1-2 批注提取(最长行 + 弹窗标记)
|
||
|
|
import io, sys
|
||
|
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||
|
|
lines = open('.scratch/opportunity-bugfix/lanhu-pages/A1X-1-2_填写今日工作.md',
|
||
|
|
'r', encoding='utf-8').read().splitlines()
|
||
|
|
cands = sorted(((len(ln), i, ln) for i, ln in enumerate(lines)), reverse=True)[:6]
|
||
|
|
for L, i, ln in cands:
|
||
|
|
print(f'--- 行 {i+1} (len={L}) ---')
|
||
|
|
print(ln[:3500])
|
||
|
|
print('done')
|