zjfz-2019-s402281/regexp/Task304.py

6 lines
94 B
Python
Raw Normal View History

2020-01-12 16:43:33 +01:00
import re
def split_list(string):
list = re.split(' *, *|:',string)
return list