zjfz-2019-s439462/regexp/Task304.py

6 lines
85 B
Python
Raw Normal View History

2020-01-23 12:38:31 +01:00
import re
def split_list(string):
return re.split(",\\s+|\\s+,\\s*|:", string)