[Tutor] manipulating a string
Bryan Fodness
bryan.fodness at gmail.com
Tue Jul 15 00:41:40 CEST 2008
I have a string (column names) that I need to split.
D_H = 'D 5 10 15 20 25 30 35 40 D Upper D Lower'
I cannot do a simple list(D_H).split because the last two strings have a
space between them (D Upper and D Lower are two, not four labels).
Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080714/20a8262b/attachment.htm>
More information about the Tutor
mailing list