12 lines
452 B
Python
12 lines
452 B
Python
path = 'c:/NeoZQYY/docs/h5_ui/compare/ORCHESTRATION-PLAN.md'
|
|
with open(path, 'rb') as f:
|
|
raw = f.read()
|
|
crlf = b'\r\n' in raw
|
|
lines = raw.decode('utf-8').replace('\r\n', '\n').split('\n')
|
|
print(f'Total: {len(lines)}')
|
|
# Show first 6 lines and lines around 28-45 (main agent section)
|
|
print('--- HEAD ---')
|
|
for i in range(0, 6): print(f'{i+1}: {repr(lines[i])}')
|
|
print('--- LINES 28-50 ---')
|
|
for i in range(27, 50): print(f'{i+1}: {repr(lines[i])}')
|