is there more simple way to do?

length power elearn2014 at gmail.com
Wed Apr 9 03:43:09 EDT 2014


x='name,sex,birthday\n\nx1,male,1948/05/28\n\nx2,female,1952/03/27
\n\nx3,female,1994/12/09'
x.replace("\n\n","\n").splitlines()

is there more simple way to replace  `x.replace("\n\n","\n").splitlines()` ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140409/dc11ff56/attachment.html>


More information about the Python-list mailing list