Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35369
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <redstone-cold@163.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.04; 'output': 0.04; '21,': 0.07; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'dec': 0.15; 'screen,': 0.16; 'wrote:': 0.17; 'file.': 0.20; 'subject:problem': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'leave': 0.26; 'run': 0.28; 'environment': 0.29; 'idea,': 0.29; 'fri,': 0.30; 'version,': 0.30; 'code': 0.31; 'system,': 0.32; 'file': 0.32; 'print': 0.32; 'idle': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'operating': 0.36; 'does': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'little': 0.39; 'help': 0.40; 'your': 0.60; 'you.': 0.61; 'save': 0.61; 'details': 0.63; '8bit%:61': 0.84 |
| Newsgroups | comp.lang.python |
| Date | Sat, 22 Dec 2012 07:07:15 -0800 (PST) |
| In-Reply-To | <mailman.1141.1356074653.29569.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=182.242.153.195; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX |
| References | <cf470745-6ee6-464c-b936-154a869af997@googlegroups.com> <mailman.1141.1356074653.29569.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 182.242.153.195 |
| MIME-Version | 1.0 |
| Subject | Re: redirect standard output problem |
| From | iMath <redstone-cold@163.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.1202.1356188844.29569.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1356188844 news.xs4all.nl 6935 [2001:888:2000:d::a6]:60600 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:35369 |
Show key headers only | View raw
在 2012年12月21日星期五UTC+8下午3时24分10秒,Chris Angelico写道: > On Fri, Dec 21, 2012 at 4:23 PM, iMath <redstone-cold@163.com> wrote: > > > redirect standard output problem > > > > > > why the result only print A but leave out 888 ? > > > > No idea, because when I paste your code into the Python 3.3 > > interpreter or save it to a file and run it, it does exactly what I > > would expect. A and 888 get sent to the screen, B and C go to the > > file. > > > > What environment are you working in? Python version, operating system, > > any little details that just might help us help you. > > > > ChrisA on WinXP + python32 when I run it through command line ,it works ok ,but when I run it through IDLE , only print A but leave out 888 so why ?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
redirect standard output problem iMath <redstone-cold@163.com> - 2012-12-20 21:23 -0800
Re: redirect standard output problem Chris Angelico <rosuav@gmail.com> - 2012-12-21 18:24 +1100
Re: redirect standard output problem iMath <redstone-cold@163.com> - 2012-12-22 07:07 -0800
Re: redirect standard output problem Chris Angelico <rosuav@gmail.com> - 2012-12-23 02:15 +1100
Re: redirect standard output problem Terry Reedy <tjreedy@udel.edu> - 2012-12-22 16:02 -0500
Re: redirect standard output problem iMath <redstone-cold@163.com> - 2012-12-22 07:07 -0800
Re: redirect standard output problem Hans Mulder <hansmu@xs4all.nl> - 2012-12-21 14:42 +0100
Re: redirect standard output problem Dave Angel <d@davea.name> - 2012-12-21 09:36 -0500
csiph-web