题解 | #字符串通配符#
字符串通配符
https://www.nowcoder.com/practice/43072d50a6eb44d2a6c816a283b02036
import re
a = input().lower()
b = input().lower()
a = a.replace('?', '\w{1}').replace('*', '\w*').replace('.', '\.')
if b in re.findall(a, b): # 返回值是a在b中匹配到的字符串
print('true')
else:
print('false')
