🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #28246

Re: Pytania początkującego cz. 1

#28246
From: hubert depesz lubaczewski
Date: Thu, 10 Nov 2011 13:41
22 lines
1615 bytes
On 2011-11-09, Jordan Szubert <usenet@joru.us.to> wrote:
>  from pprint import pprint
> dowolnie skomplikowane to może nie, ale lista dictów tupli -- czemu nie

chyba robię coś źle:

>>> from pprint import pprint                                                                                                                                                                     
>>> z=[1,2,3]
>>> x={"a":123,"b":12,"c":(5,6,7)}
>>> q=(z, x)
>>> print q
([1, 2, 3], {'a': 123, 'c': (5, 6, 7), 'b': 12})
>>> pprint(q)
([1, 2, 3], {'a': 123, 'b': 12, 'c': (5, 6, 7)})

nie za bardzo widzę różnicę.

depesz

-- 
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/
Technical Details
Message-ID: <ns0to8-r2o.ln1@depesz.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!depesz.com!not-for-mail
References: <vhsqo8-di8.ln1@depesz.com> <op.v4ozxmshhilul8@asus7p.home>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!depesz.com!not-for-mail
From: hubert depesz lubaczewski <depesz@depesz.com>
Newsgroups: pl.comp.lang.python
Subject: Re: Pytania początkującego cz. 1
Date: Thu, 10 Nov 2011 14:41:11 +0100
Organization: depesz Software
Lines: 22
Message-ID: <ns0to8-r2o.ln1@depesz.com>
References: <vhsqo8-di8.ln1@depesz.com> <op.v4ozxmshhilul8@asus7p.home>
Reply-To: depesz@depesz.com
NNTP-Posting-Host: andy.depesz.com
Mime-Version: 1.0
X-Trace: news.onet.pl 1320933003 3985 88.198.47.100 (10 Nov 2011 13:50:03 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Thu, 10 Nov 2011 13:50:03 +0000 (UTC)
User-Agent: slrn/pre1.0.0-18 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit