1.3.6 匹配多个字符串(2018-05-08) 我们在正则表达式 bat|bet|bit 中使用了择一匹配(|)符号.如下为在 Python中使用正则表达式的方法. import re #bat|bet|bit 中使用了择一匹配(|)符号 bt = 'bat|bet|bit' # 正则表达式模式: bat. bet.bit m = re.match(bt,'bat') # 'bat' 是一个匹配 if m is not None: print(m.group()) print("match…