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.
 
 
 
 
 

13 lines
543 B

# -*- coding: utf-8 -*-
import io, re, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
p = 'D:/code/crm-api-docs/A4 客户管理/客户详情/标记重点客户.bru'
txt = open(p, encoding='utf-8').read()
for line in txt.splitlines():
if '兼作对账钥匙' in line:
print('LINE repr:', repr(line))
for ch in line[:12]:
print(f' {ch!r} U+{ord(ch):04X}')
key_re = re.compile(r'^\s*`\s*(GET|POST)\s+(/[^\s`]+)\s*`', re.M)
print('match:', key_re.search(txt))
break