2007年09月13日 星期四 10:17
我想重新打开标准输出,并设定缓冲大小。 -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070913/c81b6fb6/attachment.htm
2007年09月13日 星期四 11:43
>>> f = file('/dev/stdout', 'w') >>> f>>> f.write('Hi,\n') Hi, >>> f.flush() >>> 在 07-9-13,Shao Feng<sevenever at gmail.com> 写道: > 我想重新打开标准输出,并设定缓冲大小。
2007年09月13日 星期四 12:16
On 9/13/07, Jiahua Huang <jhuangjiahua在gmail.com> wrote: > > >>> f = file('/dev/stdout', 'w') > >>> f >> >>> f.write('Hi,\n') > Hi, > >>> f.flush() > >>> > > > > 在 07-9-13,Shao Feng<sevenever在gmail.com> 写道: > > 我想重新打开标准输出,并设定缓冲大小。 > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese 有windows下面能用的吗? -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070913/6ae7c8dc/attachment.htm
2007年09月13日 星期四 12:23
import sys sys.stdout.write("hello") ________________________________ From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] On Behalf Of Shao Feng Sent: 2007Äê9ÔÂ13ÈÕ 12:16 To: python-chinese在lists.python.cn Subject: Re: [python-chinese]ÈçºÎͨ¹ýÎļþÃèÊö·û´ò¿ªÎļþ£¿ On 9/13/07, Jiahua Huang <jhuangjiahua在gmail.com> wrote: >>> f = file('/dev/stdout', 'w') >>> f>>> f.write('Hi,\n') Hi, >>> f.flush () >>> ÔÚ 07-9-13£¬Shao Feng<sevenever在gmail.com> дµÀ£º > ÎÒÏëÖØдò¿ª±ê×¼Êä³ö£¬²¢É趨»º³å´óС¡£ _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese ÓÐwindowsÏÂÃæÄÜÓõÄÂ𣿠-------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070913/879bd14e/attachment.html
2007年09月14日 星期五 11:53
还有别的办法吗? 楼上在说什么? On 9/13/07, HU Bo A <Bo.a.Hu在alcatel-sbell.com.cn> wrote: > > import sys > sys.stdout.write("hello") > > ------------------------------ > *From:* python-chinese-bounces在lists.python.cn [mailto: > python-chinese-bounces在lists.python.cn] *On Behalf Of *Shao Feng > *Sent:* 2007年9月13日 12:16 > *To:* python-chinese在lists.python.cn > *Subject:* Re: [python-chinese]如何通过文件描述符打开文件? > > > > On 9/13/07, Jiahua Huang <jhuangjiahua在gmail.com> wrote: > > > > >>> f = file('/dev/stdout', 'w') > > >>> f > >> > >>> f.write('Hi,\n') > > Hi, > > >>> f.flush () > > >>> > > > > > > > > 在 07-9-13,Shao Feng<sevenever在gmail.com> 写道: > > > 我想重新打开标准输出,并设定缓冲大小。 > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > 有windows下面能用的吗? > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070914/bd60caec/attachment.html
2007年09月14日 星期五 12:08
-------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070914/0cd6f360/attachment.htm----- 原文 -----
From: sevenever在gmail.com">Shao Feng
To: python-chinese在lists.python.cn">python-chinese在lists.python.cn
Subject: Re:[python-chinese]如何通过文件描述符打开文件?
Sent: Fri Sep 14 11:53:15 CST 2007
还有别的办法吗?
楼上在说什么?On 9/13/07, HU Bo A < Bo.a.Hu在alcatel-sbell.com.cn">mailto:Bo.a.Hu在alcatel-sbell.com.cn> wrote:import syssys.stdout.write("hello")
From: python-chinese-bounces在lists.python.cn" target="_blank">mailto:python-chinese-bounces在lists.python.cn[mailto: python-chinese-bounces在lists.python.cn" target="_blank">mailto:python-chinese-bounces在lists.python.cn] On Behalf Of Shao Feng
Sent: 2007年9月13日 12:16
To: python-chinese在lists.python.cn" target="_blank">mailto:python-chinese在lists.python.cn
Subject: Re: [python-chinese]如何通过文件描述符打开文件?On 9/13/07, Jiahua Huang < jhuangjiahua在gmail.com" target="_blank">mailto:jhuangjiahua在gmail.com> wrote:有windows下面能用的吗?>>> f = file('/dev/stdout', 'w')
>>> f
<open file '/dev/stdout', mode 'w' at 0xb7d03698>
>>> f.write('Hi,\n')
Hi,
>>> f.flush ()
>>>
在 07-9-13,Shao Feng< sevenever在gmail.com" target="_blank">mailto:sevenever在gmail.com> 写道:
> 我想重新打开标准输出,并设定缓冲大小。
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn" target="_blank">mailto:python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn" target="_blank">mailto:python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn" target="_blank">mailto:python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese" target="_blank">http://python.cn/mailman/listinfo/python-chinese>
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn">mailto:python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn">mailto:python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn">mailto:python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese" target="_blank">http://python.cn/mailman/listinfo/python-chinese>
2007年09月14日 星期五 13:07
谢谢!就是这个。 On 9/14/07, qiuyingbo在sohu.com <qiuyingbo在sohu.com> wrote: > > > ----- 原文 ----- > > *From:* Shao Feng <sevenever在gmail.com> > *To:* python-chinese在lists.python.cn > *Subject:* Re:[python-chinese]如何通过文件描述符打开文件? > *Sent:* Fri Sep 14 11:53:15 CST 2007 > > > > 还有别的办法吗? > > 楼上在说什么? > > On 9/13/07, HU Bo A < mailto:Bo.a.Hu在alcatel-sbell.com.cn<Bo.a.Hu在alcatel-sbell.com.cn>> > wrote: > > import sys > sys.stdout.write("hello") > > ------------------------------ > *From: *mailto:python-chinese-bounces在lists.python.cn<python-chinese-bounces在lists.python.cn>[mailto: > mailto:python-chinese-bounces在lists.python.cn<python-chinese-bounces在lists.python.cn>] > *On Behalf Of *Shao Feng > *Sent: *2007年9月13日 12:16 > *To: *mailto:python-chinese在lists.python.cn<python-chinese在lists.python.cn> > *Subject: *Re: [python-chinese]如何通过文件描述符打开文件? > > > > On 9/13/07, Jiahua Huang < mailto:jhuangjiahua在gmail.com<jhuangjiahua在gmail.com>> > wrote: > > >>> f = file('/dev/stdout', 'w') > >>> f >> >>> f.write('Hi,\n') > Hi, > >>> f.flush () > >>> > > > > 在 07-9-13,Shao Feng< mailto:sevenever在gmail.com <sevenever在gmail.com>> 写道: > > > 我想重新打开标准输出,并设定缓冲大小。 > _______________________________________________ > python-chinese > Post: send mailto:python-chinese在lists.python.cn<python-chinese在lists.python.cn> > Subscribe: send subscribe to mailto:python-chinese-request在lists.python.cn<python-chinese-request在lists.python.cn> > Unsubscribe: send unsubscribe to > mailto:python-chinese-request在lists.python.cn<python-chinese-request在lists.python.cn> > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > 有windows下面能用的吗? > > _______________________________________________ > python-chinese > Post: send mailto:python-chinese在lists.python.cn<python-chinese在lists.python.cn> > Subscribe: send subscribe to mailto:python-chinese-request在lists.python.cn<python-chinese-request在lists.python.cn> > Unsubscribe: send unsubscribe to > mailto:python-chinese-request在lists.python.cn<python-chinese-request在lists.python.cn> > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > ------------------------------ > 2007最好玩儿的网络游戏!<http://ad1.adpolestar.net/ADPolestar/lgs/way/;er=&mv;=710&pu;=qiwei&ad;=0018235?http://tl.sohu.com/events/20070908/index.html?rcc_id=4bfd05b7d66287271b5738e9be7aae68> > *用搜狗拼音写邮件,体验更流畅的中文输入>><http://goto.mail.sohu.com/goto.php3?code=mailadt-ta> > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070914/b3021e1c/attachment-0001.html
2007年09月14日 星期五 16:47
On 9/13/07, Shao Feng <sevenever在gmail.com> wrote: > 有windows下面能用的吗? 试试这样: import os import sys os.close(1) sys.stdout = os.fdopen(1, 'w', 8096)
2007年09月14日 星期五 17:02
f = open("file","r") -----邮件原件----- 发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 Xie Yanbo 发送时间: 2007年9月14日 16:47 收件人: python-chinese在lists.python.cn 主题: Re: [python-chinese]如何通过文件描述符打开文件? On 9/13/07, Shao Feng <sevenever在gmail.com> wrote: > 有windows下面能用的吗? 试试这样: import os import sys os.close(1) sys.stdout = os.fdopen(1, 'w', 8096) _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese
Zeuux © 2025
京ICP备05028076号