Mega Code Archive

 
Categories / Python Tutorial / String
 

Split is the inverse of join, and is used to split a string into a sequence

print '1+2+3+4+5'.split('+')  print '/usr/bin/env'.split('/')  print 'Using the default'.split()