Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105318 > unrolled thread
| Started by | vernleffler@gmail.com |
|---|---|
| First post | 2016-03-20 16:37 -0700 |
| Last post | 2016-03-20 23:09 -0700 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.lang.python
Output format vernleffler@gmail.com - 2016-03-20 16:37 -0700
Re: Output format Joel Goldstick <joel.goldstick@gmail.com> - 2016-03-20 19:56 -0400
Re: Output format Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-03-20 19:56 -0400
Re: Output format Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-21 00:23 +0000
Re: Output format Rustom Mody <rustompmody@gmail.com> - 2016-03-20 23:49 -0700
Re: Output format Alphwe <alphwe@gmail.com> - 2016-03-20 23:09 -0700
| From | vernleffler@gmail.com |
|---|---|
| Date | 2016-03-20 16:37 -0700 |
| Subject | Output format |
| Message-ID | <e3e6b58e-23f3-4d93-b68a-0e681b042786@googlegroups.com> |
I can't find a formatting way to get columns of data.
[toc] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2016-03-20 19:56 -0400 |
| Message-ID | <mailman.417.1458518163.12893.python-list@python.org> |
| In reply to | #105318 |
On Sun, Mar 20, 2016 at 7:37 PM, <vernleffler@gmail.com> wrote: > I can't find a formatting way to get columns of data. > -- > https://mail.python.org/mailman/listinfo/python-list > Welcome Vern. We're gonna need more than that -- os, python version, your code, traceback if you get one, what results you get, what you want -- Joel Goldstick http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays> http://cc-baseballstats.info/
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2016-03-20 19:56 -0400 |
| Message-ID | <mailman.418.1458518178.12893.python-list@python.org> |
| In reply to | #105318 |
On Sun, 20 Mar 2016 16:37:32 -0700 (PDT), vernleffler@gmail.com declaimed
the following:
>I can't find a formatting way to get columns of data.
Show us what you've tried.
Hint: practically every Python formatting operation allows for
specifying a field width. String interpolation formatting
"format string with %s or other placeholders" % (tuple, of, data)
essentially follows C printf() format capability (with the extension that
%s can be used for practically every data type, but for numerics you likely
want %d or %f or %e)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2016-03-21 00:23 +0000 |
| Message-ID | <mailman.419.1458519848.12893.python-list@python.org> |
| In reply to | #105318 |
On 20/03/2016 23:37, vernleffler@gmail.com wrote: > I can't find a formatting way to get columns of data. > Take your pick from:- https://docs.python.org/3/library/stdtypes.html#string-methods https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting https://docs.python.org/3/library/string.html#string-formatting https://docs.python.org/3/library/string.html#template-strings -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2016-03-20 23:49 -0700 |
| Message-ID | <87acc228-c99a-4597-8ed7-8d6b354357b3@googlegroups.com> |
| In reply to | #105321 |
On Monday, March 21, 2016 at 5:54:31 AM UTC+5:30, Mark Lawrence wrote: > On 20/03/2016 23:37, : > > I can't find a formatting way to get columns of data. > > > > Take your pick from:- > > https://docs.python.org/3/library/stdtypes.html#string-methods > > https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting > > https://docs.python.org/3/library/string.html#string-formatting > > https://docs.python.org/3/library/string.html#template-strings Also maybe look at csv: https://docs.python.org/2/library/csv.html
[toc] | [prev] | [next] | [standalone]
| From | Alphwe <alphwe@gmail.com> |
|---|---|
| Date | 2016-03-20 23:09 -0700 |
| Message-ID | <ea718f5d-cd0f-440b-a36e-b7caac8f17c3@googlegroups.com> |
| In reply to | #105318 |
On Monday, March 21, 2016 at 7:37:39 AM UTC+8, vernl...@gmail.com wrote: > I can't find a formatting way to get columns of data. I don't think this express is a question, or asking for help.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web