标签: python-3.x findall
代码是要了解re API中findall()函数的用法:
import re s = '[qwrtypsdfghjklzxcvbnm]' a = re.findall('(?<=' + s +')([aeiou]{2,})' + s, input(), re.I) print('\n'.join(a or ['-1']))