Do a str.replace('; ', ', ')
and then a str.split(', ')
or
import re
re.split('; |, ', string_to_split)
>>> a='Beautiful, is; better*than\nugly'
>>> import re
>>> re.split('; |, |\*|\n',a)
['Beautiful', 'is', 'better', 'than', 'ugly']
参考:
[1] https://stackoverflow.com/questions/4998629/split-string-with-multiple-delimiters-in-python