import sys
path = r'c:\NeoZQYY\apps\miniprogram\miniprogram\pages\board-finance\board-finance.wxss'
with open(path, 'r', encoding='utf-8') as f:
    lines = f.readlines()
in_block = False
for i, line in enumerate(lines):
    if '.rev-col {' in line and 'header' not in lines[i-1] if i > 0 else True:
        in_block = True
    if in_block:
        print(f'{i+1}: {lines[i]}', end='')
        if '}' in line:
            in_block = False
            print()
sys.stdout.flush()
