001、
>>> import re >>> s1 = "ATGXAGXATGETAGETAGATGXXY" >>> re.findall('ATG|TAG', s1) ## 同时对字符串s1中的两个字符串进行查找 ['ATG', 'ATG', 'TAG', 'TAG', 'ATG']