2007年12月15日 星期六 23:18
*ÇëÎÊ£ºpythonûÓжàÐÐ×¢ÊÍ£¿* -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071215/2f0b04a6/attachment.htm
2007年12月15日 星期六 23:32
On Dec 15, 2007 11:18 PM, python st <python.st在gmail.com> wrote: > 请问:python没有多行注释? 没。 -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou
2007年12月15日 星期六 23:34
On Dec 15, 2007 11:18 PM, python st <python.st在gmail.com> wrote: > *请问:python没有多行注释?* > 有的 > """ > 我是注释 > 我还是注释 > 全都是注释 > """ > -- simple is good http://brucewang.net http://io.brucewang.net http://twitter.com/number5 skype: number5 -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20071215/312360fe/attachment.html
2007年12月15日 星期六 23:47
大多数编辑器都会有快捷键整块注释的. 在 07-12-15,python st<python.st在gmail.com> 写道: > 请问:python没有多行注释? > _______________________________________________ > 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 >
2007年12月16日 星期日 07:43
非要块注释的话, 可以这样: if 0: 注释内容 注释内容 -- 开飞机的舒克@六间房 http://www.lvye.org/shuke msn:weizhong at netease.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20071216/c0648d07/attachment.html
2007年12月16日 星期日 10:03
On Dec 15, 2007 11:47 PM, Yang Zhang <zyang03在gmail.com> wrote: > ´ó¶àÊý±à¼Æ÷¶¼»áÓпì½Ý¼üÕû¿é×¢Ê͵Ä. > emacs ÓÐÕâ¸ö¹¦ÄÜ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071216/3762b081/attachment.htm
2007年12月16日 星期日 12:20
Ö±½Ó ''' Ëæ±ãЩ¶àÉÙ×¢ÊÍ ''' ²»ÐÐÂ𣿠-------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071216/a0c5c6cc/attachment.htm
2007年12月16日 星期日 13:29
vim也可以 vmap: s/^/#/ vmap :s/^##*// On Dec 15, 2007 11:20 PM, 丁亮 <bluker2599在gmail.com> wrote: > 直接 > ''' > 随便些多少注释 > ''' > 不行吗? > _______________________________________________ > 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 >
2007年12月17日 星期一 11:30
On Dec 16, 2007 1:29 PM, shhgs <shhgs.efhilt在gmail.com> wrote: > vim¤]¥i¥H > > vmap: s/^/#/ > vmap:s/^##*// n¦b10-15¦æ¥i¥H¥Î : 10,15s/^/#/-------------- 下一部分 -------------- ¤@?HTMLªþ¥ó³Q²¾°£... URL: http://python.cn/pipermail/python-chinese/attachments/20071217/dbdc9515/attachment.htm
2007年12月17日 星期一 13:34
算行数真不爽, 按下 ctrl + v , 用 j、k 或方向键选取要注释的范围, 按 I# 再按 ctrl + c 完毕 On Dec 17, 2007 11:30 AM, Ben Luo <benluo at gmail.com> wrote: > 要在10-15行可以用 > : 10,15s/^/#/>
2007年12月17日 星期一 14:07
ÔÚwindowsÏÂÃæ,Vim7 ¿ÉÒÔÕâÑù, 1ÒÆµ½ÐÐÊ× 2°´Ctrl+q #Òâ˼ÊÇÁÐÑ¡ 3Óà j¡¢k »ò·½Ïò¼üѡȡҪעÊ͵ķ¶Î§£¬ 4È»ºóÊäÈë#, È»ºóÔÙEsc,¾Í¿ÉÒÔÁË. ÕâÑù¾Í»áÔÚÿһÐеĵÚÒ»ÁвúÉú#ºÅ hongqing.lv 2007-12-17 ·¢¼þÈË£º Jiahua Huang ·¢ËÍʱ¼ä£º 2007-12-17 13:35:26 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ Re: [python-chinese]ÇëÎÊ£ºpythonûÓжàÐÐ×¢ÊÍ£¿ ËãÐÐÊýÕæ²»Ë¬£¬ °´Ï ctrl + v £¬ Óà j¡¢k »ò·½Ïò¼üѡȡҪעÊ͵ķ¶Î§£¬ °´ I# ÔÙ°´ ctrl + c Íê±Ï On Dec 17, 2007 11:30 AM, Ben Luo <benluo在gmail.com > wrote: > ÒªÔÚ10-15ÐпÉÒÔÓà > : 10,15s/^/#/> _______________________________________________ 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/20071217/1801cbf7/attachment.htm
2007年12月17日 星期一 14:41
1. 不需要额外移动到行首,我说的按 I (大写 i ) 就是在行首插入 2. 可能你 windows 下 vim 重新做了键映射吧,Ubuntu 和 MAC 下是 ctrl + v 列选 On Dec 17, 2007 2:07 PM, hongqing.lv <hongqing.lv at gmail.com> wrote: > > > 在windows下面,Vim7 > 可以这样, > 1移到行首 > 2按Ctrl+q #意思是列选
2007年12月17日 星期一 18:10
WindowsÏÂctrl+VÊÇÕ³Ìù¼ü.ΪÁ˲»³åÍ»,¹Ù·½·¢²¼°æÖо͸ø¸Ä³Éctl_VÁË, hongqing.lv 2007-12-17 ·¢¼þÈË£º Jiahua Huang ·¢ËÍʱ¼ä£º 2007-12-17 14:42:42 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ Re: [python-chinese]ÇëÎÊ£ºpythonûÓжàÐÐ×¢ÊÍ£¿ 1. ²»ÐèÒª¶îÍâÒÆ¶¯µ½ÐÐÊ×£¬ÎÒ˵µÄ°´ I (´óд i ) ¾ÍÊÇÔÚÐÐÊײåÈë 2. ¿ÉÄÜÄã windows Ï vim ÖØÐÂ×öÁ˼üÓ³Éä°É£¬Ubuntu ºÍ MAC ÏÂÊÇ ctrl + v ÁÐÑ¡ On Dec 17, 2007 2:07 PM, hongqing.lv <hongqing.lv在gmail.com > wrote: > > > ÔÚwindowsÏÂÃæ,Vim7 > ¿ÉÒÔÕâÑù, > 1ÒÆµ½ÐÐÊ× > 2°´Ctrl+q #Òâ˼ÊÇÁÐÑ¡ _______________________________________________ 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/20071217/a5ff771d/attachment.htm
2007年12月17日 星期一 22:55
osxÏ嵀 textmats ÊÇ apple+/ ÔÙ°´Ò»Ï¾ÍÊÇÈ¥ÁË # ÔÚ07-12-17£¬hongqing.lv <hongqing.lv在gmail.com> дµÀ£º > > WindowsÏÂctrl+VÊÇÕ³Ìù¼ü.ΪÁ˲»³åÍ»,¹Ù·½·¢²¼°æÖо͸ø¸Ä³Éctl_VÁË, > > ------------------------------ > hongqing.lv > 2007-12-17 > ------------------------------ > *·¢¼þÈË£º* Jiahua Huang > *·¢ËÍʱ¼ä£º* 2007-12-17 14:42:42 > *ÊÕ¼þÈË£º* python-chinese在lists.python.cn > *³ËÍ£º* > *Ö÷Ì⣺* Re: [python-chinese]ÇëÎÊ£ºpythonûÓжàÐÐ×¢ÊÍ£¿ > > 1. ²»ÐèÒª¶îÍâÒÆ¶¯µ½ÐÐÊ×£¬ÎÒ˵µÄ°´ I (´óд i ) ¾ÍÊÇÔÚÐÐÊײåÈë > 2. ¿ÉÄÜÄã windows Ï vim ÖØÐÂ×öÁ˼üÓ³Éä°É£¬Ubuntu ºÍ MAC ÏÂÊÇ ctrl + v ÁÐÑ¡ > > On Dec 17, 2007 2:07 PM, hongqing.lv <hongqing.lv在gmail.com > wrote: > > > > > > ÔÚwindowsÏÂÃæ,Vim7 > > ¿ÉÒÔÕâÑù, > > 1ÒÆµ½ÐÐÊ× > > 2°´Ctrl+q #Òâ˼ÊÇÁÐÑ¡ > _______________________________________________ > 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 > -- HD£¨È¼ÉÕÖеĻ𣩠ÎÒ¹¤×÷ÎÒ¿ìÀÖ£¬ÎÒÇÚ·ÜÎÒÊÕ»ñ¡£ÇëÓëÎÒÒ»Æð¿ìÀÖ£¬ÓëÎÒÒ»ÆðÊÕ»ñ¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071217/445bdf03/attachment.html
2007年12月17日 星期一 23:37
ÎÒ°´ ctrl + cºóÔõôֻÄÜÔÚÒ»ÐеĿªÍ·¼Ó#£¬¶ø²»ÊÇËùÓÐÑ¡ÔñµÄÐÐ £¿ On Dec 17, 2007 1:34 PM, Jiahua Huang <jhuangjiahua在gmail.com> wrote: > ËãÐÐÊýÕæ²»Ë¬£¬ > > °´Ï ctrl + v £¬ Óà j¡¢k »ò·½Ïò¼üѡȡҪעÊ͵ķ¶Î§£¬ > °´ I# ÔÙ°´ ctrl + c Íê±Ï > > On Dec 17, 2007 11:30 AM, Ben Luo <benluo在gmail.com> wrote: > > ÒªÔÚ10-15ÐпÉÒÔÓà > > : 10,15s/^/#/> > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn¡¢<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/20071217/6ad486f0/attachment.html
2007年12月18日 星期二 01:51
Windows 下不能 ctrl + c , 只能 Esc On Dec 17, 2007 11:37 PM, leopay <leopay at gmail.com> wrote: > 我按 ctrl + c后怎么只能在一行的开头加#,而不是所有选择的行 ? > >
2007年12月18日 星期二 10:26
直接用三括号括起来就行了! """ This is a comment. """ Jiahua Huang wrote: > 算行数真不爽, > > 按下 ctrl + v , 用 j、k 或方向键选取要注释的范围, > 按 I# 再按 ctrl + c 完毕 > > On Dec 17, 2007 11:30 AM, Ben Luo <benluo在gmail.com> wrote: > >> 要在10-15行可以用 >> : 10,15s/^/#/>> >> > _______________________________________________ > 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 -- 金庆 欢迎访问:金庆的专栏 ( http://blog.csdn.net/jq0123 ) 欢迎加入:上海程序员 ( http://groups.google.com/group/programmers_sh )
2007年12月18日 星期二 10:37
µÄÈ·£¬ÎÒÊÇÔÚwinÓÃputtyͨ¹ýssh´ò¿ªviµÄ£¬ÓÃctrl+c²»ÐУ¬ÓÃesc¾Í¿ÉÒÔ£¬Ð»Ð» µ«ÊDz»ÖªµÀΪʲôÓÃctrl+c¾Í²»ÐÐÄØ£¿ On Dec 18, 2007 1:51 AM, Jiahua Huang <jhuangjiahua在gmail.com> wrote: > Windows ϲ»ÄÜ ctrl + c , Ö»ÄÜ Esc > > On Dec 17, 2007 11:37 PM, leopay <leopay在gmail.com> wrote: > > ÎÒ°´ ctrl + cºóÔõôֻÄÜÔÚÒ»ÐеĿªÍ·¼Ó#£¬¶ø²»ÊÇËùÓÐÑ¡ÔñµÄÐÐ £¿ > > > > > _______________________________________________ > 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/20071218/e854e60e/attachment.html
2007年12月18日 星期二 10:38
On Dec 18, 2007 10:26 AM, jinq0123在163.com <jinq0123在163.com> wrote: > Ö±½ÓÓÃÈýÀ¨ºÅÀ¨ÆðÀ´¾ÍÐÐÁË£¡ > """ > This is > a comment. > """ > ×ܾõµÃ """ ÊÇÓÃÀ´function doc Óõġ£²»ÊÇÓÃÀ´×ö×¢Ê͵ġ£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071218/af0d00ea/attachment.htm
2007年12月18日 星期二 12:37
On Dec 18, 2007 10:37 AM, leopay <leopay在gmail.com> wrote: > 的确,我是在win用putty通过ssh打开vi的,用ctrl+c不行,用esc就可以,谢谢 > 但是不知道为什么用ctrl+c就不行呢? > 应该是win下的ctrl+c有其它用处吧。比如复制或是中断之类的。 不过,一个键能搞定的干嘛要用两个键呢? 我一直用esc的,不论win还是linux,或是freebsd下。 -- Best Regards, Leo Jay
2007年12月18日 星期二 14:11
ctrl + c 是在主键盘区,效率更高。 Win 下的话, putty 和 scrt 之类都有选键盘方案,的 On Dec 18, 2007 12:37 PM, Leo Jay <python.leojay at gmail.com> wrote: > 应该是win下的ctrl+c有其它用处吧。比如复制或是中断之类的。 > 不过,一个键能搞定的干嘛要用两个键呢?
Zeuux © 2025
京ICP备05028076号