单项选择题

import re
reg=r"x[^ab0-9]y"
m=re.search(reg,"xayx2yxcy")
print(m)
结果匹配"xcy":

A、正确
B、错误

微信扫码免费搜题