# -*- coding: utf-8 -*- """票12 前侦察:扫描 demo/index.html 全部 function / section / dialog / 关键 id 行号""" import io, re, sys sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') p = r'e:\code\crm-backend-matt\.scratch\customer-demo-ref\demo\index.html' lines = open(p, 'r', encoding='utf-8').read().splitlines() pat = re.compile(r'^(async )?function (\w+)|