Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35369
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2012-12-22 07:07 -0800 |
| References | <cf470745-6ee6-464c-b936-154a869af997@googlegroups.com> <mailman.1141.1356074653.29569.python-list@python.org> |
| Subject | Re: redirect standard output problem |
| From | iMath <redstone-cold@163.com> |
| Message-ID | <mailman.1202.1356188844.29569.python-list@python.org> (permalink) |
在 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