2004年04月12日 星期一 10:23
前几天有朋友问,有没有将Python代码“编译”为本地码的工具。刚刚发现了这个东东,有兴趣的朋友不妨一试,据称可以将代码提速至2到100倍! http://sourceforge.net/projects/psyco/ 致 礼! 刘鑫 liux at gdcn.com 2004-04-12
2004年04月12日 星期一 10:34
Hello 刘鑫, 可爱的 Python:用 Psyco 让 Python 运行得像 C 一样快 http://www-900.ibm.com/developerWorks/cn/linux/sdk/python/charm-28/index.shtml 2002 年 10 月 就有报道了,不过只作用于 i386... === [ 10:23 ; 04-04-12 ] you wrote: ? 前几天有朋友问,有没有将Python代码“编译”为本地码的工具。刚刚发现了这个东东,有兴趣的朋友不妨一试,据称可以将代码提速至2到100倍! ? http://sourceforge.net/projects/psyco/ ? 致 ? 礼! ? 刘鑫 ? liux at gdcn.com ? 2004-04-12 === === === === === === === === === === -- Best regards, Zoom.Quiet /=======================================\ ]Time is unimportant, only life important![ \=======================================/
2004年04月12日 星期一 12:10
´ó¼ÒºÃ£¡ ÎÒ¼ÓÈëpython listÓжÎÈÕ×ÓÁË¡£ ¸Õ¿ªÊ¼ÊǾõµÃºÃÍ棬 ºóÀ´¾õµÃ£¬ÊµÔÚûʲôÎʵijö¿ÚµÄÎÊÌ⣬ ËùÒÔһֱû»°½²¡£ Ҫ˵»Ø´ð±ðÈ˵ÄÎÊÌ⣬ÅÂҲûµ½ÄÇˮƽ¡£ ²»¹ýʵÔÚÊÇÓÐЩÊÂÇ飬¿´²»¹ýÈ¥£¬¾Í˵Á½¾ä¡£ ´ó¼Ò¸ã±à³ÌµÄ£¬´óÔ¼Äê¼Í¶¼²î²»¶à£¬ÎÒÒ²²»ÊÇÍдó£¬ÓÐʲô˵ʲô£¬ ˵µÄ²»¶Ô£¬Ò²±ðÉúÆø£¬¾Íµ±¿´¸öÀÖ×Ó¡£ ÎÒÒÔǰû¼ÓÈë¹ýÓʼþ×飬Ҳ²»ÖªµÀÕⶫÎ÷£¬µ½µ×ÊÇÒ»¸öʲôÐÔÖÊ¡£ ¿É¼ÈÈ»ÓÐÎÊÓд𣬶øÇÒ£¬´ó¼Ò¶¼ÄÜÊÕµ½ÄãµÄÌáÎÊ£¬ºÍ»Ø´ð£¬ ÎÒ¾õµÃ£¬»¹ÊÇÎÊһЩÓеãÉî¶ÈµÄÎÊÌâ¡£ ÎÒÖªµÀÐÂÊÖ¸ÕÈëÃÅ£¬Á½ÑÛһĨºÚ£¬¿É´ó¼Ò¶¼ÊÇÕâô¹ýÀ´µÄ£¬ Äã²»¶®×ÔÈ»¿ÉÒÔÎÊ£¬¿É×ܲ»ÄÜʲô¶¼ÎÊ¡£ ºÜ¶àÎÊÌ⣬ boa ºÃÓÃô£¬ÄÄÀïÏÂÔØ£¿ py2exeºÃÓÃô£¿ÄÄÀïÓÐÏêϸ˵Ã÷£¿ ÄѵÀÄã¾Í²»ÖªµÀÓиöËÑË÷ÒýÇæ ½Ðgoogleô£¿ Äã×ÜûÌý¹ýbaiduô£¿ ×îÆðÂëÄã¸ÃÖªµÀÓиöµØ·½½Ðsourceforge°É£¿ ÂÛ̳Àﶼ˵¹ý²»Ï°ٴÎÁË¡£ search it! py2exe£¬ÎÒÒ²²»»á£¬¿ÉÓõ½µÄʱºò£¬ËÑһϣ¬È«³öÀ´ÁË¡£ boaÔÚÂÛ̳µÄÌù×ÓÀ˵Á˺ü¸´ÎÁË°É¡£ ËùÒÔ£¬½¨Ò飬´ó¼ÒÓÐÎÊÌ⣬»¹ÊÇÏÈËÑËÑ¡£ ×îÆðÂëÄãÎʵÄʱºò£¬¿ÉÒÔ˵£¬sourceforgeÎÒÕÒ¹ýÁË£¬Ã»ÕÒµ½°¡¡£ ÖÁÓÚʲôide¸ü¿ì£¬Ê²Ã´Í¼Ðλ¯¸üºÃ£¬ ÎÒ¾õµÃ£¬Ð´³öÀ´µÄ¶¼ÊǸö´úÂëµÄ¹¤¾ß£¬ÓëÆä¸ú×ÅÈ˼ÒÓ㬠²»ÈçÓÃÒ»¸ö£¬ÓõÄÊìÁ·ÁË£¬Ê²Ã´¶¼²î²»¶à¡£ ÎÒÒ»Ö±ÓÃpython×Ô´øµÄidel£¬Ò²¾õµÃºÜ²»´í¡£ ËùÒÔ£¬½¨Òé´ó¼Ò£¬Èç¹ûÄãû¶«Î÷Òª×ö£¬Ö»ÊÇ´ÕÈÈÄÖÍ棬 ͼ¸öÐÂÏÊ£¬´ó¿É²»±ØÌáÎÊ£¬×Ô¼º×ÁÄ¥£¬¸üÓÐÒâ˼¡£ µ«ÕâʵÔÚÊǸö²»ÔõôºÃµÄÏÖÏó¡£ ÒòΪ¹¤¾ß£¬ÊÇҪʹÓõģ¬ ¾ÍËã½ñÌìÄÃ×ÅÒÐÌì½££¬Ã÷Ìì»»ÁËÍÀÁúµ¶£¬ µ½×îºó»¹²»ÈçÈ˼ÒÄÃן«Ô䣬×ö³öÀ´¸öƯÁÁµÄµÊ×ÓÀ´µÄʵÔÚ¡£ »¹ÓУ¬¾ÍÊÇ£¬ÎÒ¾õµÃ£¬¸øÄãÓ㣬»¹²»Èç½ÐÄãÔõôµöÓã¡£ Èç¹ûһζµÄÓÐÎÊÌâ¾ÍÀ´ÎÊ£¬ÏëÎʳɸöר¼Ò£¬²»Ì«¿ÉÄÜ¡£ ºÜ¶àʱºò£¬ÐèÒª×Ô¼ºÑ°ÕҴ𰸵ġ£ Èç¹û´úÂë³öÏÖʲôÎÊÌ⣬µ÷ÊÔ²»³ö£¬Ö±½ÓÌù³öÀ´£¬ ´ó¼ÒÑо¿£¬ÎÒ¾õµÃ¿ÉÄܸüÓмÛÖµ¡£ ×îºó¾ÍÊÇ£¬Èç¹ûÌù¸½¼þ£¬ÇëÔÚÐÅÖÐ˵Ã÷£¬¸½¼þÊÇʲô£¬ ·ñÔò£¬Ò»°ãÈ˲»¸ÒµãµÄ°É¡£ ÎÒûɶҪÎʵġ£ ¾ÍËæ±ã˵˵¡£ ÄãÒª·ÇÈÃÎÒÎʸöÎÊÌ⣬²ÅËã·¢ÐÅ£¿ ÄǸö£¬Óб㵱³Ôô£¿ _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
2004年04月12日 星期一 12:15
I think the regex can do this well. -----原始邮件----- 发件人: Lin Armis [mailto:armislin at hotmail.com] 发送时间: 2004年4月11日 11:42 收件人: python-chinese at lists.python.cn 主题: [python-chinese] about streamtoken hi all: In java,there is streamtoken method to deal with input string. how does the python do this work? Supposed that input "aa/dd/as/23/a22",I wanna the string "23" change to int('23'),but how can I tell the diffrent between '23'and 'aa' in the all strings?in java ,I can use streamtoken to recognize the number type and string type from input,but i dont know how is in Python. cheers, Mian _________________________________________________________________ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese
2004年04月12日 星期一 12:20
=B7=C7=B3=A3=D4=DE=CD=AC=A3=A1 =B8=F6=C8=CB=B8=D0=BE=F5=A3=AC=C8=E7=B9=FB=D3=D0=CE=CA=CC=E2=A3=AC=D7=D4=BC= =BA=D2=AA=CF=C8=CA=D4=D7=C5=BD=E2=BE=F6=A3=A8=D6=C1=C9=D9=D2=AA=CF=C8=D3=C3= google=CB=D1=CB=F7=D2=BB=CF=C2=CD=AC=C0=E0=B5=C4=CE=CA=CC=E2=BA=CD=BD=E2=BE= =F6=B7=BD=B7=A8=A3=A9=A3=AC=C8=E7=B9=FB=CA=B5=D4=DA=B8=E3=B2=BB=B6=A8=A3=AC= =B0=D1=CE=CA=CC=E2=CF=EA=CF=B8=D0=B4=B3=F6=A3=AC=CD=AC=CA=B1=B8=BD=C9=CF=D7= =D4=BC=BA=D2=D1=BE=AD=B3=A2=CA=D4=B9=FD=B5=C4=B7=BD=B7=A8=A3=AC=B7=A2=B5=BD= mail = list=D4=D9=B4=F3=BC=D2=D2=BB=C6=F0=CC=D6=C2=DB=B1=C8=BD=CF=BA=C3=A1=A3 =D5=E2=D1=F9=B6=D4=D7=D4=BC=BA=BA=CD=B1=F0=C8=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://join.msn.com/?page=3Dfeatures/junkmail
2004年04月12日 星期一 12:28
55A/6JINCg==
Zeuux © 2024
京ICP备05028076号