题解 | #字符串通配符#
字符串通配符
https://www.nowcoder.com/practice/43072d50a6eb44d2a6c816a283b02036
import re res = input() ps = input() res = res.replace(".", "\.").replace("?", "[a-z0-9]{1}").replace("*", "[a-z0-9]*") print(str(bool(ps in re.findall(res,ps,re.I))).lower())