使用正则表达式可以很好解决
import re s = 'Hello!This?Is!What?I!Want' ss = re.split('[!?]', s) ss = ['Hello', 'This', 'Is', 'What', 'I', 'Want']