Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105320
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Output format |
| Date | 2016-03-20 19:56 -0400 |
| Organization | IISS Elusive Unicorn |
| Message-ID | <mailman.418.1458518178.12893.python-list@python.org> (permalink) |
| References | <e3e6b58e-23f3-4d93-b68a-0e681b042786@googlegroups.com> |
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/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web