import repattern=r'[aeiou]'if re.match(pattern,'grey'): print('match 1')if re.match(pattern,'rrrru'): print('match 2')if re.match(pattern,'rhythm myths'): print('match 3')
没有输出,但是不是只要匹配了a e i o u 中的一个就可以了吗?