redirect standard output problem
iMath
redstone-cold at 163.com
Sat Dec 22 10:07:15 EST 2012
在 2012年12月21日星期五UTC+8下午3时24分10秒,Chris Angelico写道:
> On Fri, Dec 21, 2012 at 4:23 PM, iMath <redstone-cold at 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 ?
More information about the Python-list
mailing list