Python论坛  - 讨论区

标题:[python-chinese] 可以 swap lines 的 Python_editor_?

2007年05月22日 星期二 18:45

Arnold Chen arnold在design97.com
星期二 五月 22 18:45:20 HKT 2007

可惜 notepad2 只支援 swap 一行, 如果你有需要兩個 for loop 交換先後次序還 
是要 copy & paste

Arnold

python-chinese-request在lists.python.cn wrote:
> 想在 python-chinese 邮件列表发言,请写信给:
> 	python-chinese在lists.python.cn
>
> 要订阅或者退订列表,可以访问万维网地址:
> 	http://python.cn/mailman/listinfo/python-chinese
> 或者可以向:
> 	python-chinese-request在lists.python.cn
> 发送主题或者正文为'help'的邮件。
>
> 您可以通过邮件地址:
> 	python-chinese-owner在lists.python.cn
> 联系到此列表的管理员。
>
> 当回信时,请给一个适当的标题,这样会比 "Re:
> Contents of python-chinese digest..."更清楚明白。
>
>
> 本日主题:
>
>    1. Re: 可以 swap lines 的 Python_editor_? ( 东子/hydon )
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 22 May 2007 18:04:38 +0800
> From: " 东子/hydon " <hydonlee在gmail.com>
> Subject: Re: [python-chinese] 可以 swap lines 的 Python_editor_?
> To: python-chinese在lists.python.cn
> Message-ID:
> 	<3bc65bab0705220304i42f788c2y3b62cb7001f0eb93在mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 对了,最重要的, 他支持swap lines
>
> 在07-5-22,东子/hydon <hydonlee在gmail.com> 写道:
>   
>> 不知道大家有没有用过notepad2, 很小的一个工具,支持python的语法加亮--
>>
>> 在07-5-22,SpitFire <spitfire2在gmail.com> 写道:
>>     
>>>  python目前好象没有支持重构的ide,重构工具还是比较重要的
>>>
>>>  ------------------------------
>>>  SpitFire
>>> 2007-05-22
>>>  ------------------------------
>>>  *发件人:* Arnold Chen
>>> *发送时间:* 2007-05-22 16:11:51
>>> *收件人:* python-chinese在lists.python.cn
>>> *抄送:*
>>> *主题:* Re: [python-chinese]可以 swap lines 的 Python_editor_?
>>>
>>>  Dear tocer,
>>>
>>> 可能你沒有感受過可以 swap lines 的方便, 因為很多時間都需要 swap lines
>>>
>>> Arnold
>>>
>>>
>>>
>>> python-chinese-request在lists.python.cn wrote:
>>>       
>>>> 想在 python-chinese 邮件列表发言,请写信给:
>>>>  python-chinese在lists.python.cn
>>>>
>>>> 要订阅或者退订列表,可以访问万维网地址:
>>>>  http://python.cn/mailman/listinfo/python-chinese
>>>> 或者可以向:
>>>>  python-chinese-request在lists.python.cn
>>>> 发送主题或者正文为'help'的邮件。
>>>>
>>>> 您可以通过邮件地址:
>>>>  python-chinese-owner在lists.python.cn
>>>> 联系到此列表的管理员。
>>>>
>>>> 当回信时,请给一个适当的标题,这样会比 "Re:
>>>> Contents of python-chinese digest..."更清楚明白。
>>>>
>>>>
>>>> 本日主题:
>>>>
>>>>    1. Re: 求助,如何获得系统的鼠标和键盘事件 (Liu Ian)
>>>>    2. Re: 可以 swap lines 的 Python_editor_? (wyh)
>>>>    3. Re: 请教recv的问题 ( 麦田守望者 )
>>>>    4. Re: 请教recv的问题 (Qiangning Hong)
>>>>    5. 请大家推荐款统计c代码的工具 (hch)
>>>>    6. Re: 请大家推荐款统计c代码的工具 (Jay Li)
>>>>    7. Re: 请教recv的问题 (Leo Jay)
>>>>    8. Re: 请大家推荐款统计c代码的工具 (hch)
>>>>
>>>>
>>>> ----------------------------------------------------------------------
>>>>
>>>> Message: 1
>>>> Date: Tue, 22 May 2007 12:03:09 +0800
>>>> From: "Liu Ian"  <lpvips在gmail.com >
>>>> Subject: Re: [python-chinese]
>>>>  求助,如何获得系统的鼠标和键盘事件
>>>> To: python-chinese在lists.python.cn
>>>> Message-ID:
>>>>  <632c04eb0705212103q2c2609e8ua03822ae5ac673d8在mail.gmail.com >
>>>> Content-Type: text/plain; charset="gb2312"
>>>>
>>>> 谢谢,我试一下,如果有不明之处,还要继续请教:)
>>>>
>>>> 在07-5-22,Andelf  <andelf在gmail.com > 写道:
>>>>
>>>>         
>>>>> 在07-5-22,Liu Ian  <lpvips在gmail.com > 写道:
>>>>>
>>>>>           
>>>>>> 我希望截获系统的鼠标和键盘事件,不知道是否有好的方法。
>>>>>>
>>>>>>             
>>>>> 如果是win32,那么有 pyhook
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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/20070522/95b34caf/attachment.html <http://python.cn/pipermail/python-chinese/attachments/20070522/95b34caf/attachment.html%C2%A0>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 2
>>>> Date: Tue, 22 May 2007 12:04:15 +0800
>>>> From: "wyh"  <wyhross在gmail.com >
>>>> Subject: Re: [python-chinese] 可以 swap lines 的 Python_editor_?
>>>> To: "python-chinese在lists.python.cn"  <python-chinese在lists.python.cn>
>>>> Message-ID:  <200705221204134438972在gmail.com >
>>>> Content-Type: text/plain; charset="gb2312"
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> wyh
>>>> 2007-05-22
>>>>
>>>>
>>>>
>>>> 发件人: tocer
>>>> 发送时间: 2007-05-22 11:22:00
>>>> 收件人: python-chinese在lists.python.cn
>>>> 抄送:
>>>> 主题: Re: [python-chinese]可以 swap lines 的 Python_editor_?
>>>>
>>>> 即使用拷贝粘贴,  也不费事啊,几秒钟的事情。
>>>>
>>>> Arnold  Chen  wrote::
>>>>    >  �教大家�  python  program  �用那�  editor?
>>>>    >
>>>>    >  如果我�一�很大的  software  �用  eclipse  +  PyDev,  但有些�候想用一些比�
>>>>
>>>>  �型的,  我��用  SPE  (Stani's  Python  Editor),  也��用  Limodou  的  UliPad
>>>>    >  都欠缺一�我很需要的功能,  就是  swap  lines,  即程序的先後次序交�
>>>>    >
>>>>    >  在  eclipse  +  pydev  的�境�,  如果你想���  function  的先後次序,  不需要
>>>>
>>>>  copy  &  paste,  只需要  select  你想要  swap  的行句(可多於一句),  按  Alt  +  Up
>>>>    >  Arrow  或  Alt  +  Down  Arrow  就可以  swap.
>>>>    >
>>>>    >  ��有�有推荐的  editor  有��功能
>>>>    >  _______________________________________________
>>>> _______________________________________________
>>>> 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/20070522/98c04870/attachment-0001.html <http://python.cn/pipermail/python-chinese/attachments/20070522/98c04870/attachment-0001.html%C2%A0>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 3
>>>> Date: Tue, 22 May 2007 12:44:49 +0800
>>>> From: " 麦田守望者 "  <qcxhome在gmail.com >
>>>> Subject: Re: [python-chinese] 请教recv的问题
>>>> To: python-chinese在lists.python.cn
>>>> Message-ID:
>>>>  <e03bf2360705212144h667dc4b8h98c6f0541fe4afe9在mail.gmail.com >
>>>> Content-Type: text/plain; charset=GB2312; format=flowed
>>>>
>>>> On 5/18/07, zhangfan  <yalexfan在gmail.com > wrote:
>>>>
>>>>         
>>>>> 如果对方发送完数据后,关闭了socket,读完之后的下一次recv返回 '',
>>>>> 所以可以通过:
>>>>> while True:
>>>>>         data = s.recv(1024)
>>>>>         if not data:
>>>>>                 break
>>>>>         process(data)
>>>>> 判断是否读完。
>>>>>
>>>>> 否则,recv就会阻塞,因为不知道对方是否还会发送数据。不过,可以把
>>>>> socket设置成非阻塞模式来避免。
>>>>>
>>>>> ------------------
>>>>> zhangfan
>>>>> 2007-05-18
>>>>>
>>>>> -------------------------------------------------------------
>>>>> 发件人:kevin
>>>>> 发送日期:2007-05-18 18:06:45
>>>>> 收件人:Python.cn
>>>>> 抄送:
>>>>> 主题:[python-chinese]请教recv的问题
>>>>>
>>>>> pythoner,您好!
>>>>>     请教:
>>>>>     我用recv去读socket数据,但是由于不知道确切的长度,所以准备每次读1024字节然后把这些片段连起来
>>>>>     可是怎么样才知道读完了呢?好像读完了,下一次recv就阻塞了.
>>>>>
>>>>>
>>>>>>>>>> 礼!
>>>>>
>>>>>
>>>>> kevin
>>>>> kevin_woso在126.com
>>>>> 2007-05-18
>>>>> _______________________________________________
>>>>> 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
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>           
>>>> 当接收到的字节数小于传递给recv方法的缓冲区大小的时候,也能够说明数据已经接收完毕。
>>>>
>>>>
>>>>         
>>> _______________________________________________
>>> 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
>>>
>>> _______________________________________________
>>> 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
>>>
>>>       
>>
>> --
>> 努力做好每一件事
>> TRY TO DO MY BEST
>>     
>
>
>
>
>   

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年05月22日 星期二 18:52

limodou limodou在gmail.com
星期二 五月 22 18:52:30 HKT 2007

On 5/22/07, Arnold Chen <arnold在design97.com> wrote:
> ¿Éϧ notepad2 Ö»Ö§Ô® swap Ò»ÐÐ, Èç¹ûÄãÓÐÐèÒªƒÉ‚€ for loop ½»“QÏÈáá´ÎÐò߀
> ÊÇÒª copy & paste
>
ÎÒ¾õµÃÍÏק¾ÍºÜ·½±ã°¡¡£ÆäʵºÜ¶àµÄ²Ù×÷ÎÒÏëÏ°¹ßÊDz»Í¬µÄ£¬¾ÍÏóÎÒϲ»¶Ê¹ÓÃÊó±êÈ¥²Ù×÷£¬Ê¹Óò˵¥È¥²Ù×÷£¬¿ì½Ý¼üÄÜÓþÍÓ㬵«²¢²»ÐèÒªËùÓеIJÙ×÷¶¼¿ÉÒÔͨ¹ý¿ì½Ý¼üÀ´Íê³É£¬²»È»Êó±ê¾ÍûʲôÓÃÁË¡£µ±È»ÓÐÈ˸üϲ»¶Ê¹Óÿì½Ý¼ü£¬Ö»²»¹ý¿ì½Ý¼üµÄ¶¨ÒåÒ²ÊÇÓÐÏ޵ġ£

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年05月22日 星期二 18:55

Pang.Ding-Hai在inventec-inc.com Pang.Ding-Hai在inventec-inc.com
星期二 五月 22 18:55:37 HKT 2007

我用emacs,它可以交换两个sexp,不用选择就能交换两个"{}"这样的区域,当然也能交换两行。

-----原始邮件-----
发件人: python-chinese-bounces at lists.python.cn
[mailto:python-chinese-bounces at lists.python.cn]代表 Arnold Chen
发送时间: 2007?5?22? 18:45
收件人: python-chinese at lists.python.cn
主题: Re: [python-chinese]可以 swap lines 的 Python_editor_?


可惜 notepad2 只支援 swap 一行, 如果你有需要兩個 for loop 交換先後次序還 
是要 copy & paste

Arnold

python-chinese-request at lists.python.cn wrote:
> 想在 python-chinese 邮件列表发言,请写信给:
> 	python-chinese at lists.python.cn
>
> 要订阅或者退订列表,可以访问万维网地址:
> 	http://python.cn/mailman/listinfo/python-chinese
> 或者可以向:
> 	python-chinese-request at lists.python.cn
> 发送主题或者正文为'help'的邮件。
>
> 您可以通过邮件地址:
> 	python-chinese-owner at lists.python.cn
> 联系到此列表的管理员。
>
> 当回信时,请给一个适当的标题,这样会比 "Re:
> Contents of python-chinese digest..."更清楚明白。
>
>
> 本日主题:
>
>    1. Re: 可以 swap lines 的 Python_editor_? ( 东子/hydon )
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 22 May 2007 18:04:38 +0800
> From: " 东子/hydon " <hydonlee at gmail.com>
> Subject: Re: [python-chinese] 可以 swap lines 的 Python_editor_?
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<3bc65bab0705220304i42f788c2y3b62cb7001f0eb93 at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 对了,最重要的, 他支持swap lines
>
> 在07-5-22,东子/hydon <hydonlee at gmail.com> 写道:
>   
>> 不知道大家有没有用过notepad2, 很小的一个工具,支持python的语法加亮--
>>
>> 在07-5-22,SpitFire <spitfire2 at gmail.com> 写道:
>>     
>>>  python目前好象没有支持重构的ide,重构工具还是比较重要的
>>>
>>>  ------------------------------
>>>  SpitFire
>>> 2007-05-22
>>>  ------------------------------
>>>  *发件人:* Arnold Chen
>>> *发送时间:* 2007-05-22 16:11:51
>>> *收件人:* python-chinese at lists.python.cn
>>> *抄送:*
>>> *主题:* Re: [python-chinese]可以 swap lines 的 Python_editor_?
>>>
>>>  Dear tocer,
>>>
>>> 可能你沒有感受過可以 swap lines 的方便, 因為很多時間都需要 swap lines
>>>
>>> Arnold
>>>
>>>
>>>
>>> python-chinese-request at lists.python.cn wrote:
>>>       
>>>> 想在 python-chinese 邮件列表发言,请写信给:
>>>>  python-chinese at lists.python.cn
>>>>
>>>> 要订阅或者退订列表,可以访问万维网地址:
>>>>  http://python.cn/mailman/listinfo/python-chinese
>>>> 或者可以向:
>>>>  python-chinese-request at lists.python.cn
>>>> 发送主题或者正文为'help'的邮件。
>>>>
>>>> 您可以通过邮件地址:
>>>>  python-chinese-owner at lists.python.cn
>>>> 联系到此列表的管理员。
>>>>
>>>> 当回信时,请给一个适当的标题,这样会比 "Re:
>>>> Contents of python-chinese digest..."更清楚明白。
>>>>
>>>>
>>>> 本日主题:
>>>>
>>>>    1. Re: 求助,如何获得系统的鼠标和键盘事件 (Liu Ian)
>>>>    2. Re: 可以 swap lines 的 Python_editor_? (wyh)
>>>>    3. Re: 请教recv的问题 ( 麦田守望者 )
>>>>    4. Re: 请教recv的问题 (Qiangning Hong)
>>>>    5. 请大家推荐款统计c代码的工具 (hch)
>>>>    6. Re: 请大家推荐款统计c代码的工具 (Jay Li)
>>>>    7. Re: 请教recv的问题 (Leo Jay)
>>>>    8. Re: 请大家推荐款统计c代码的工具 (hch)
>>>>
>>>>
>>>> ----------------------------------------------------------------------
>>>>
>>>> Message: 1
>>>> Date: Tue, 22 May 2007 12:03:09 +0800
>>>> From: "Liu Ian"  <lpvips at gmail.com >
>>>> Subject: Re: [python-chinese]
>>>>  求助,如何获得系统的鼠标和键盘事件
>>>> To: python-chinese at lists.python.cn
>>>> Message-ID:
>>>>  <632c04eb0705212103q2c2609e8ua03822ae5ac673d8 at mail.gmail.com >
>>>> Content-Type: text/plain; charset="gb2312"
>>>>
>>>> 谢谢,我试一下,如果有不明之处,还要继续请教:)
>>>>
>>>> 在07-5-22,Andelf  <andelf at gmail.com > 写道:
>>>>
>>>>         
>>>>> 在07-5-22,Liu Ian  <lpvips at gmail.com > 写道:
>>>>>
>>>>>           
>>>>>> 我希望截获系统的鼠标和键盘事件,不知道是否有好的方法。
>>>>>>
>>>>>>             
>>>>> 如果是win32,那么有 pyhook
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> python-chinese
>>>>> Post: send python-chinese at lists.python.cn
>>>>> Subscribe: send subscribe to python-chinese-request at lists.python.cn
>>>>> Unsubscribe: send unsubscribe to
>>>>>           
>>> python-chinese-request at lists.python.cn
>>>       
>>>>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>>>>
>>>>>
>>>>>           
>>>> -------------- 涓���ㄥ� --------------
>>>> 一个HTML附件被移除...
>>>> URL: http://python.cn/pipermail/python-chinese/attachments/20070522/95b34caf/attachment.html <http://python.cn/pipermail/python-chinese/attachments/20070522/95b34caf/attachment.html%C2%A0>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 2
>>>> Date: Tue, 22 May 2007 12:04:15 +0800
>>>> From: "wyh"  <wyhross at gmail.com >
>>>> Subject: Re: [python-chinese] 可以 swap lines 的 Python_editor_?
>>>> To: "python-chinese at lists.python.cn"  <python-chinese at lists.python.cn>
>>>> Message-ID:  <200705221204134438972 at gmail.com >
>>>> Content-Type: text/plain; charset="gb2312"
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> wyh
>>>> 2007-05-22
>>>>
>>>>
>>>>
>>>> 发件人: tocer
>>>> 发送时间: 2007-05-22 11:22:00
>>>> 收件人: python-chinese at lists.python.cn
>>>> 抄送:
>>>> 主题: Re: [python-chinese]可以 swap lines 的 Python_editor_?
>>>>
>>>> 即使用拷贝粘贴,  也不费事啊,几秒钟的事情。
>>>>
>>>> Arnold  Chen  wrote::
>>>>    >  �教大家�  python  program  �用那�  editor?
>>>>    >
>>>>    >  如果我�一�很大的  software  �用  eclipse  +  PyDev,  但有些�候想用一些比�
>>>>
>>>>  �型的,  我��用  SPE  (Stani's  Python  Editor),  也��用  Limodou  的  UliPad
>>>>    >  都欠缺一�我很需要的功能,  就是  swap  lines,  即程序的先後次序交�
>>>>    >
>>>>    >  在  eclipse  +  pydev  的�境�,  如果你想���  function  的先後次序,  不需要
>>>>
>>>>  copy  &  paste,  只需要  select  你想要  swap  的行句(可多於一句),  按  Alt  +  Up
>>>>    >  Arrow  或  Alt  +  Down  Arrow  就可以  swap.
>>>>    >
>>>>    >  ��有�有推荐的  editor  有��功能
>>>>    >  _______________________________________________
>>>> _______________________________________________
>>>> python-chinese
>>>> Post:  send  python-chinese at lists.python.cn
>>>> Subscribe:  send  subscribe  to  python-chinese-request at lists.python.cn
>>>>         
>>>> Unsubscribe:  send  unsubscribe  to    python-chinese-request at lists.python.cn
>>>>         
>>>> Detail  Info:  http://python.cn/mailman/listinfo/python-chinese
>>>> -------------- 涓���ㄥ� --------------
>>>> 一个HTML附件被移除...
>>>> URL: http://python.cn/pipermail/python-chinese/attachments/20070522/98c04870/attachment-0001.html <http://python.cn/pipermail/python-chinese/attachments/20070522/98c04870/attachment-0001.html%C2%A0>
>>>>
>>>> ------------------------------
>>>>
>>>> Message: 3
>>>> Date: Tue, 22 May 2007 12:44:49 +0800
>>>> From: " 麦田守望者 "  <qcxhome at gmail.com >
>>>> Subject: Re: [python-chinese] 请教recv的问题
>>>> To: python-chinese at lists.python.cn
>>>> Message-ID:
>>>>  <e03bf2360705212144h667dc4b8h98c6f0541fe4afe9 at mail.gmail.com >
>>>> Content-Type: text/plain; charset=GB2312; format=flowed
>>>>
>>>> On 5/18/07, zhangfan  <yalexfan at gmail.com > wrote:
>>>>
>>>>         
>>>>> 如果对方发送完数据后,关闭了socket,读完之后的下一次recv返回 '',
>>>>> 所以可以通过:
>>>>> while True:
>>>>>         data = s.recv(1024)
>>>>>         if not data:
>>>>>                 break
>>>>>         process(data)
>>>>> 判断是否读完。
>>>>>
>>>>> 否则,recv就会阻塞,因为不知道对方是否还会发送数据。不过,可以把
>>>>> socket设置成非阻塞模式来避免。
>>>>>
>>>>> ------------------
>>>>> zhangfan
>>>>> 2007-05-18
>>>>>
>>>>> -------------------------------------------------------------
>>>>> 发件人:kevin
>>>>> 发送日期:2007-05-18 18:06:45
>>>>> 收件人:Python.cn
>>>>> 抄送:
>>>>> 主题:[python-chinese]请教recv的问题
>>>>>
>>>>> pythoner,您好!
>>>>>     请教:
>>>>>     我用recv去读socket数据,但是由于不知道确切的长度,所以准备每次读1024字节然后把这些片段连起来
>>>>>     可是怎么样才知道读完了呢?好像读完了,下一次recv就阻塞了.
>>>>>
>>>>>
>>>>>>>>>> 礼!
>>>>>
>>>>>
>>>>> kevin
>>>>> kevin_woso at 126.com
>>>>> 2007-05-18
>>>>> _______________________________________________
>>>>> python-chinese
>>>>> Post: send python-chinese at lists.python.cn
>>>>> Subscribe: send subscribe to python-chinese-request at lists.python.cn
>>>>> Unsubscribe: send unsubscribe to
>>>>>           
>>> python-chinese-request at lists.python.cn
>>>       
>>>>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>>>> _______________________________________________
>>>>> python-chinese
>>>>> Post: send python-chinese at lists.python.cn
>>>>> Subscribe: send subscribe to python-chinese-request at lists.python.cn
>>>>> Unsubscribe: send unsubscribe to
>>>>>           
>>> python-chinese-request at lists.python.cn
>>>       
>>>>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>>>>
>>>>>           
>>>> 当接收到的字节数小于传递给recv方法的缓冲区大小的时候,也能够说明数据已经接收完毕。
>>>>
>>>>
>>>>         
>>> _______________________________________________
>>> python-chinese
>>> Post: send python-chinese at lists.python.cn
>>> Subscribe: send subscribe to python-chinese-request at lists.python.cn
>>> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
>>>
>>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>>
>>> _______________________________________________
>>> python-chinese
>>> Post: send python-chinese at lists.python.cn
>>> Subscribe: send subscribe to python-chinese-request at lists.python.cn
>>> Unsubscribe: send unsubscribe to
>>> python-chinese-request at lists.python.cn
>>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>>
>>>       
>>
>> --
>> 努力做好每一件事
>> TRY TO DO MY BEST
>>     
>
>
>
>
>   
_______________________________________________
python-chinese
Post: send python-chinese at lists.python.cn
Subscribe: send subscribe to python-chinese-request at lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年05月23日 星期三 09:26

jessinio smith jessinio在gmail.com
星期三 五月 23 09:26:27 HKT 2007

¶¥vim

ÕâÑùµÄswap line¶ÔvimÀ´Ëµ£¬ÊÇС²ËÒ»µú£¡


Ëæ±ãÌáһϣ¬ÉÏÃæµÄtocerÊÇvim´óţѽ :-)
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070523/93c868aa/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年05月28日 星期一 09:16

刘鑫 march.liu在gmail.com
星期一 五月 28 09:16:00 HKT 2007

˵µ½Öع¹£¬¸Õ¸ÕÔÚubuntuµÄÈí¼þ¿âÀï¿´µ½Õâ¸ö£º

bicyclerepair

A refactoring tool for python
A framework and refactoring tool for Python. IDE Plugins are included for
Pymacs, IDLE and Vim. Using Bicycle Repair Man you can rename classes,
methods
and variables, and all users of them are found and adjusted appropriately.

 Homepage: http://bicyclerepair.sourceforge.net/

ÔÚ07-5-23£¬jessinio smith <jessinio在gmail.com> дµÀ£º
>
> ¶¥vim
>
> ÕâÑùµÄswap line¶ÔvimÀ´Ëµ£¬ÊÇС²ËÒ»µú£¡
>
>
> Ëæ±ãÌáһϣ¬ÉÏÃæµÄtocerÊÇvim´óţѽ :-)
>
> _______________________________________________
> 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
>



-- 
µÇɽÕßÈ¥µÇɽ£¬ÒòΪɽÔÚÄÇÀï
ÎÒÔÚ˼¿¼£¬ÒòΪÎÊÌâÔÚÄÇÀï

ÁõöÎ
March.Liu
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070528/79269f69/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号