Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

re python split()

s_comma = 'one,two,three,four,five'

print(s_comma.split(','))
# ['one', 'two', 'three', 'four', 'five']

print(s_comma.split('three'))
# ['one,two,', ',four,five']
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
3+6 =