Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69938 > unrolled thread
| Started by | length power <elearn2014@gmail.com> |
|---|---|
| First post | 2014-04-09 15:43 +0800 |
| Last post | 2014-04-09 15:43 +0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
is there more simple way to do? length power <elearn2014@gmail.com> - 2014-04-09 15:43 +0800
| From | length power <elearn2014@gmail.com> |
|---|---|
| Date | 2014-04-09 15:43 +0800 |
| Subject | is there more simple way to do? |
| Message-ID | <mailman.9064.1397039127.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
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()` ?
Back to top | Article view | comp.lang.python
csiph-web