Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105318 > unrolled thread

Output format

Started byvernleffler@gmail.com
First post2016-03-20 16:37 -0700
Last post2016-03-20 23:09 -0700
Articles 6 — 6 participants

Back to article view | Back to comp.lang.python


Contents

  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

#105318 — Output format

Fromvernleffler@gmail.com
Date2016-03-20 16:37 -0700
SubjectOutput 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]


#105319

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2016-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]


#105320

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2016-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]


#105321

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2016-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]


#105341

FromRustom Mody <rustompmody@gmail.com>
Date2016-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]


#105338

FromAlphwe <alphwe@gmail.com>
Date2016-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