2005年05月16日 星期一 13:42
geckor£¬ÄãºÃ >>> string.strip('str') + 'ing' # ¡¯string.strip'ÊǸÉʲôµÄ È¥³ý×Ö·û´®Í·Î²¿Õ°× Carambo £¬ qutr at tjub.com.cn 2005-5-16 ----- ÊÕµ½ÒÔÏÂÀ´ÐÅÄÚÈÝ ----- ·¢¼þÈË: geckor ÊÕ¼þÈË: python-chinese ʱ ¼ä: 2005-05-16, 13:36:37 Ö÷ Ìâ: Re:_´ð¸´:__[python-chinese]_Re:_linuxÏÂÈçºÎ´ÓÔ´Âë°²×°wxPyth_on? å¦å¦å?br> åºç°é®é¢äº?br> 两个å符串å¼ä¹é´çèæ¥æ¯èªå¨çï¼ä¸ä¾ç¬¬ä¸è¡å¯ä»¥åæâword = 'Help' 'A'âè¿ç§æ¹å¼åªå¯¹å符串å¼ææï¼ä»»ä½å符串表达å¼é½ä¸éç¨è¿ç§æ¹æ³ã?br> >>> import stringãããããããããã #ãè¿ä¸ªæ¯ä»ä¹ææ?br> >>> 'str' 'ing' # <- This is ok 'string' >>> string.strip('str') + 'ing' # âstring.strip'æ¯å¹²ä»ä¹ç 'string' >>> string.strip('str') 'ing' # è¿ä¸ªå°±æ´ä¸æäº?br> File "", line 1, in ? string.strip('str') 'ing' ^ SyntaxError: invalid syntax å符串å¯ä»¥ç¨ä¸æ ï¼ç´¢å¼ï¼æ¥è¯¢ï¼å°±åCä¸æ ·ï¼å符串ç第ä¸ä¸ªå符ä¸æ æ¯0ãè¿é没æç¬ç«çå符类åï¼åç¬¦ä» ä» æ¯å¤§å°ä¸ºä¸çå符串ãå°±åå¨Iconä¸é£ æ ·ï¼å符串çå串å¯ä»¥éè¿åçæ å¿æ¥è¡¨ç¤ºï¼ä¸¤ä¸ªç±åå·éå¼çç´¢å¼ã?br> >>> word[4] 'A' >>> word[0:2] 'He' >>> word[2:4] 'lp' ï¼ä»¥ä¸çæé½å ææ?br> ï¼ä»¥ä¸æ¯æè¯éªçç»æï¼ä¸ºä»ä¹å >>> word[4] Traceback (most recent call last): File "", line 1, in ? NameError: name 'word' is not defined >>> string.strip('str') + 'ing' Traceback (most recent call last): File "", line 1, in ? NameError: name 'string' is not defined >>> ï¼åªä½å¤§å¥æç¹ä¸ä¸ï¼æ¯ä¸æ¯ææç¥è¯æ¼æ´å å符串索å¼æ¯ç¨æ¥å¹²ä»ä¹ç ps:é®é¢å¤å¤å?br> å?2005.5.16, ä¸å12:57, 马å åéï¼?br> > è¿æ¯å°æ寺çæ«å°å§å害ï¼ä¹å³°ä»ç¸é½ä¸æ¯å¯¹æï¼åµåµã?br> > pythonéååä¸å¡å±é¢çå¿«éå¼åï¼å°¤å ¶æ¯å¯¹æçè¦æ±ä¸æ¯å¤ªå¼ºçæ¶åãå¦æéè¦?br> > 强è°æçï¼ä¹å¯ä»¥éè¿ç¨cæ¥å®ç°ä¸äºè´¹æ¶çæä½ï¼å¹¶åpythonèåè¿è¡ã?br> > å°ç®å为æ¢ï¼å¨pcçé«å±å¼åé¢åï¼pythonå ä¹æ æä¸è½ãããè¿å¾çäºä»å¼ºå¤§ç?br> > åµå ¥æ§åæ©å±æ§ã?br> > > On Mon, 16 May 2005 12:02:38 +0800 > geckor at 126.com wrote: > ================================================================= >> åµåµãè¿æ¯å åæ·±åçæ¯è¾å¥½ï¼åééåï¼ä¹å³°åï½ï½å害ï¼ï¼ï¼ >> 对äºãé®é®å¤§å®¶ï¼pythonéååä»ä¹å¢ï¼ç½é¡µå¼åè¿æ¯ï½ï½ï½ >> å?2005.5.16, ä¸å11:37, å¼ é åéï¼?br> >> >>> >>> æ±æ¹ä¸æ两类é«æï¼å åæ¯è¾æ·±åçï¼æ¦åæ¯è¾æªå¼çã?br> >>>  >>> >>> å件äº? python-chinese-bounces at lists.python.cn >>> [mailto:python-chinese-bounces at lists.python.cn] 代表 geckor at 126.com >>> åéæ¶é? 2005å¹?æ?6æ?11:09 >>> æ¶ä»¶äº? qutr at tjub.com.cn; python-chinese at lists.python.cn >>> 主é¢: Re: _[python-chinese]_Re:_linuxä¸å¦ä½ä»æºç å®è£ wxPyth_on? >>>  >>> >>> å¨ï¼å欢åèè¹çå°±æ¯å°åï¼ç»§ç»æçç¹ç«ç¬è¡å§ãæ¬æ¥å¨å¦æ ¡ç¨macç人就å°ï¼ç°å¨å对pythonæå ´è¶£ï¼å¦æ ¡éä¹äººç¨è¿ä¸ªç¼ç¨ãçæ¥ææ¯è¶æ? >>> è¶è± >>> 离群ä¼äºå?br> >>> éé·ä¸ããã?br> >>> >>> å?2005.5.16, ä¸å9:00, Carambo åéï¼?br> >>> geckorï¼ä½ å¥?br> >>> >>> ä½ çé®é¢è¦å°Pythonçå®æ¹ç½ç«å»çï¼å¯è½ç¨macç人å¾å°ãåµåµï¼ >>> >>> Caramboï¼qutr at tjub.com.cn >>> 2005-5-16----- æ¶å°ä»¥ä¸æ¥ä¿¡å 容----- >>> å件äº?geckor >>> æ¶ä»¶äº?åé¢,python-chinese >>> æ?é?2005-05-15, 21:40:30 >>> ä¸?é¢?Re:_[python-chinese]_Re:_linuxä¸å¦ä½ä»æºç å®è£ wxPyth_on? >>> >>> æçç³»ç»æ¯mac os x.3.9ã请é®å¨macä¸ç¨pythonæä»ä¹éè¦ç¹å«ä¹å¤å >>> éè¦æ³¨æä»ä¹ï¼ï¼?br> >>> å?005.5.15, ä¸å9:28, åé¢ åéï¼?br> >>> >>>> æçç³»ç»æ¯magiclinux,ä¹èªå¸¦äºpython2.4..ä½ææ¯ä¸è½½äºwxPythonçrpmæ件,å ±ä¸ä¸?br> >>>> (common,devel,gtk)for >>>> redhatç?å®è£ åå¯ä»¥è¿è¡Boa.ä½ å¯ä»¥å°wxpython.sf.netä¸ç´æ¥ä¸è½? >>>> >>>> >>>> >>>> >>>> On 5/15/05, wang bin <wangbin1979 at gmail.com> wrote: >>>>> æçç³»ç»æ¯slackware 10.1ï¼èªå¸¦çpython >>>>> 2.4.1ï¼ç°å¨ææ³å¦ä¹ wxPythonï¼æ以ä¸è½½äºwxPython-src-2.6.0..0ãä½æ¯ä¸ç¥éæ¹ææ ·å®è£ ï¼å¹¶ä¸æ¯æ?br> >>>>> >>> unicodeãä¹åæåç¬å®è£ äºwxWidgetï¼ä¸ºäºå®è£ xchm软件ï¼?请é®è¿éè¦éæ°è£ åï¼æçäºwxPythonèªå¸¦çææ¡£ï¼ä½æ¯æ²¡æç?br> >>>>> æç½ï¼æ§è¡?br> >>>>> python setup.py build >>>>> æ»æ¯æ¥éï¼è¯·é®æ没æ人å¨linuxä¸è£ è¿ï¼è¯·ç»ä¸äºæ示ï¼è°¢è°¢ã?br> >>>>> -- >>>>> æ³é£ä¹å¿ï¼æ°¸è¿ä¸æ»ï¼ >>>>> >>>> _______________________________________________ >>>> python-chinese list >>>> python-chinese at lists.python.cn >>>> http://python.cn/mailman/listinfo/python-chinese >>> >>> >>> _______________________________________________ >>> python-chinese list >>> python-chinese at lists.python.cn >>> http://python.cn/mailman/listinfo/python-chinese >>> _______________________________________________ >>> python-chinese list >>> python-chinese at lists.python.cn >>> http://python.cn/mailman/listinfo/python-chinese >>> _______________________________________________ >>> python-chinese list >>> python-chinese at lists.python.cn >>> http://python.cn/mailman/listinfo/python-chinese > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > å¦å¦å?br> åºç°é®é¢äº?br> Times STKaiti 两个å符串å¼ä¹é´çèæ¥æ¯èªå¨çï¼ä¸ä¾ç¬¬ä¸è¡å¯ä»¥åæ?lt;/bigger> Times â?lt;/bigger> Times New Roman word = 'Help' 'A' SimSun â?lt;/bigger> STKaiti è¿ç§æ¹å¼åªå¯¹å符串å¼ææï¼ä»»ä½å符串表达å¼é½ä¸éç¨è¿ç§æ¹æ³ã?br> Courier >>> import string ãããããããããã Courier # ãè¿ä¸ªæ¯ä»ä¹ææ?lt;/x-tad-bigger> Courier >>> 'str' 'ing' # <<- This is ok 'string' >>> string.strip('str') + 'ing' # âstring.strip' æ¯å¹²ä»ä¹ç Courier 'string' >>> string.strip('str') 'ing' # è¿ä¸ªå°±æ´ä¸æäº?lt;/x-tad-bigger> Courier File "< ", line 1, in ? string.strip('str') 'ing' ^ SyntaxError: invalid syntax Times STKaiti å符串å¯ä»¥ç¨ä¸æ ï¼ç´¢å¼ï¼æ¥è¯¢ï¼å°±å?lt;/bigger> Times New Roman C STKaiti ä¸æ ·ï¼å符串ç第ä¸ä¸ªå符ä¸æ æ¯ Times New Roman 0 STKaiti ãè¿é没æç¬ç«çå符类åï¼åç¬¦ä» ä» æ¯å¤§å°ä¸ºä¸çå符串ãå°±åå¨ Times New Roman Icon STKaiti ä¸é£æ ·ï¼å符串çå串å¯ä»¥éè¿åçæ å¿æ¥è¡¨ç¤ºï¼ä¸¤ä¸ªç±åå·éå¼çç´¢å¼ã?br> Courier >>> word[4] 'A' >>> word[0:2] 'He' >>> word[2:4] 'lp' ï¼ä»¥ä¸çæé½å ææ?br> ï¼ä»¥ä¸æ¯æè¯éªçç»æï¼ä¸ºä»ä¹å >>> word[4] Traceback (most recent call last): File "<", line 1, in ? NameError: name 'word' is not defined >>> string.strip('str') + 'ing' Traceback (most recent call last): File "<", line 1, in ? NameError: name 'string' is not defined >>> ï¼åªä½å¤§å¥æç¹ä¸ä¸ï¼æ¯ä¸æ¯ææç¥è¯æ¼æ´å å符串索å¼æ¯ç¨æ¥å¹²ä»ä¹ç ps:é®é¢å¤å¤å?br> å?2005.5.16, ä¸å12:57, 马å åéï¼?br>è¿æ¯å°æ寺çæ«å°å§å害ï¼ä¹å³°ä»ç¸é½ä¸æ¯å¯¹æï¼åµåµã?br> pythonéååä¸å¡å±é¢çå¿«éå¼åï¼å°¤å ¶æ¯å¯¹æçè¦æ±ä¸æ¯å¤ªå¼ºçæ¶åãå¦æéè¦?br> 强è°æçï¼ä¹å¯ä»¥éè¿ç¨cæ¥å®ç°ä¸äºè´¹æ¶çæä½ï¼å¹¶åpythonèåè¿è¡ã?br> å°ç®å为æ¢ï¼å¨pcçé«å±å¼åé¢åï¼pythonå ä¹æ æä¸è½ãããè¿å¾çäºä»å¼ºå¤§ç?br> åµå ¥æ§åæ©å±æ§ã?br> On Mon, 16 May 2005 12:02:38 +0800 geckor at 126.com wrote: ================================================================= åµåµãè¿æ¯å åæ·±åçæ¯è¾å¥½ï¼åééåï¼ä¹å³°åï½ï½å害ï¼ï¼ï¼ 对äºãé®é®å¤§å®¶ï¼pythonéååä»ä¹å¢ï¼ç½é¡µå¼åè¿æ¯ï½ï½ï½ å?2005.5.16, ä¸å11:37, å¼ é åéï¼?br> æ±æ¹ä¸æ两类é«æï¼å åæ¯è¾æ·±åçï¼æ¦åæ¯è¾æªå¼çã?br>  å件äº? python-chinese-bounces at lists.python.cn [mailto:python-chinese-bounces at lists.python.cn] 代表 geckor at 126.com åéæ¶é? 2005å¹?æ?6æ?11:09 æ¶ä»¶äº? qutr at tjub.com.cn; python-chinese at lists.python.cn 主é¢: Re: _[python-chinese]_Re:_linuxä¸å¦ä½ä»æºç å®è£ wxPyth_on?  å¨ï¼å欢åèè¹çå°±æ¯å°åï¼ç»§ç»æçç¹ç«ç¬è¡å§ãæ¬æ¥å¨å¦æ ¡ç¨macç人就å°ï¼ç°å¨å对pythonæå ´è¶£ï¼å¦æ ¡éä¹äººç¨è¿ä¸ªç¼ç¨ãçæ¥ææ¯è¶æ¥è¶è? 离群ä¼äºå?br> éé·ä¸?lt;fontfamily>Hiragino Kaku Gothic Proããã?br> å?2005.5.16, ä¸å9:00, Carambo åéï¼?br> geckorï¼ä½ å¥?br> ä½ çé®é¢è¦å°Pythonçå®æ¹ç½ç«å»çï¼å¯è½ç¨macç人å¾å°ãåµåµï¼ Caramboï¼qutr at tjub.com.cn 2005-5-16----- æ¶å°ä»¥ä¸æ¥ä¿¡å 容----- å件äº?geckor æ¶ä»¶äº?åé¢,python-chinese æ?é?2005-05-15, 21:40:30 ä¸?é¢?Re:_[python-chinese]_Re:_linuxä¸å¦ä½ä»æºç å®è£ wxPyth_on? æçç³»ç»æ¯mac os x.3.9ã请é®å¨macä¸ç¨pythonæä»ä¹éè¦ç¹å«ä¹å¤å éè¦æ³¨æä»ä¹ï¼ï¼?br> å?005.5.15, ä¸å9:28, åé¢ åéï¼?br> æçç³»ç»æ¯magiclinux,ä¹èªå¸¦äºpython2.4..ä½ææ¯ä¸è½½äºwxPythonçrpmæ件,å ±ä¸ä¸?br> (common,devel,gtk)for redhatç?å®è£ åå¯ä»¥è¿è¡Boa.ä½ å¯ä»¥å°wxpython.sf.netä¸ç´æ¥ä¸è½? On 5/15/05, wang bin <<wangbin1979 at gmail.com> wrote: æçç³»ç»æ¯slackware 10.1ï¼èªå¸¦çpython 2.4.1ï¼ç°å¨ææ³å¦ä¹ wxPythonï¼æ以ä¸è½½äºwxPython-src-2.6.0..0ãä½æ¯ä¸ç¥éæ¹ææ ·å®è£ ï¼å¹¶ä¸æ¯æ?br> unicodeãä¹åæåç¬å®è£ äºwxWidgetï¼ä¸ºäºå®è£ xchm软件ï¼?请é®è¿éè¦éæ°è£ åï¼æçäºwxPythonèªå¸¦çææ¡£ï¼ä½æ¯æ²¡æç?br>æç½ï¼æ§è¡?br> python setup.py build æ»æ¯æ¥éï¼è¯·é®æ没æ人å¨linuxä¸è£ è¿ï¼è¯·ç»ä¸äºæ示ï¼è°¢è°¢ã?br> -- æ³é£ä¹å¿ï¼æ°¸è¿ä¸æ»ï¼ _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050516/17d8da9d/attachment.html
Zeuux © 2025
京ICP备05028076号