Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63173
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'list?': 0.07; 'returned.': 0.07; '[1,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'received:google.com': 0.35; 'pm,': 0.38; 'how': 0.40; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=JExVRHhNqCgOA4XQDjWvJmUdOUhna3RzQGGHr6MDDn0=; b=aT79VmI0hLH6J9RAJ1BjIPynAb/pLKLyNL7/vOm8GCp1N7kTlDRSLojRsk8lLNWb+p R7pGtKbpxIQNCa3s/a2rJL6JuEJLP8BUAnIVqbN0t7uI93MheSBitVhqZdApHoD/LHmD pjI7Ba/dHw5D4WVi4TyC5ZMOvEYltq2PsJ6TjnSRrxHCrGkC9a2j8nuEUurO+nIDaJdN iaPZ6I1YQHWllraiVHWVcUN2f8/FYbXi/gzJiB5vHV+yKU6sK5CNDxmSAnS/li35RJYt E4HZGWU8kQvYThAWQH27oKhFgA5Usw9I+Dr6LgdgiuO3yEu8KyE7lc61ryUmSluxvMeB Do8Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.194.97 with SMTP id hv1mr3456135pbc.162.1388908602790; Sat, 04 Jan 2014 23:56:42 -0800 (PST) |
| In-Reply-To | <52C90BE5.3010909@gmail.com> |
| References | <52C90BE5.3010909@gmail.com> |
| Date | Sun, 5 Jan 2014 18:56:42 +1100 |
| Subject | Re: print range in python3.3 |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4932.1388908606.18130.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1388908606 news.xs4all.nl 2872 [2001:888:2000:d::a6]:50109 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:63173 |
Show key headers only | View raw
On Sun, Jan 5, 2014 at 6:38 PM, luofeiyu <elearn2014@gmail.com> wrote: >>>> range(1,10) > range(1, 10) >>>> print(range(1,10)) > range(1, 10) > > how can i get 1,2,3,4,5,6,7,8,9 in python3.3 ? Are you looking for a list? That's what Python 2 returned. In Python 3, you can get that like this: >>> list(range(1,10)) [1, 2, 3, 4, 5, 6, 7, 8, 9] ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: print range in python3.3 Chris Angelico <rosuav@gmail.com> - 2014-01-05 18:56 +1100
csiph-web