2007年04月10日 星期二 09:33
ÕÒµ½î}ÁË¡£ÊÂÉÏ£¬ÎÒß@ÓµÄץȡÎļþÓÐ×£¬×îé_ʼÎÒÿץȡÎļþ¶¼×ö³ÉÒ»³Ìʽ£¬ÎļþÈÈݾÍÊÇÏÂÃæµÄÄÇ£¬µ«ÊÇÄÇÓÉú³ÉÁ˺ܶàÌÐÐÎļþ¡£ºóíÎҸijÉÓÃÒ»ÎļþÌÐУ¬Õ{ÓÃÆäËûµÄÄÇЩץȡÎļþ£¬µ«ÊÇÔÚÿץÎļþÇ°ÃæÓÐ con = pymssql.connect(host =CDBConfig.DBConnects["host"], \ user = CDBConfig.DBConnects["user"], \ password = CDBConfig.DBConnects ["password"], \ database = CDBConfig.DBConnects["database"]) ß@]È¥µô£¬ÄÇÿ´ÎÔÚ×¥ÎļþÇ°¶¼þÓÐÖØ×öÒ»´ÎµÃµ½ßB½Ó×Ö·û´®µÄß^³Ì¡£¬FÔÚ°Ñß@µÃµ½ßB½Ó×Ö·û´®·ÅÈë×îé_ʼֻÌÐÐÒ»´Î£¬È´æ]ÔÙÔö¼Ó¡£ 2007/4/10, É¢Âþ¿áÄк¢ <17mxnet在gmail.com>: > > > > ÎÒÒ²×öץȡ > > ÎÒÄÚ´æ×î¶à²»³¬¹ý10MB > > CPU ²»³¬¹ý2% > > > > ³ÌÐòºÍÄã²î²»¶à ÿÌì´ó¸ÅÒª²É¼¯ 12´Î > > ÿ´Î´ó¸Å 2W¸öÒ³Ãæ ·ÖÎö ¸üÐÂmysql > > Èç¹ûÏ̴߳¦ÓÚ¹ÒÆð״̬µÄʱºò > > ÄÚ´æÖ»ÓÐ500¶àKBµÄÕ¼Óà > > ÔÚ 07-4-10£¬vcc<vcc在163.com> дµÀ£º > > > ÔÚ 2007-04-10¶þµÄ 00:41 +0800£¬ÁõöÎдµÀ£º > > > > t_time = Y + "-" + M + "-" + D + " " + h + ":" + m + ":" + s > > > > ½«ÕâÒ»ÐÐд³É''.join([...])µÄÐÎʽ£¬»òÕßÓÃformat£¬¾¡Á¿¼õÉÙÖмä×Ö·û´®µÄÉú > > > > ³É£¬¿ÉÒÔÓÐЧ¼õÉÙ×Ö·û´®³ØÕ¼ÓÃÄÚ´æ¡£ÁíÍ⣬¿ÉÒÔ²éÔÄÒ»ÏÂgcÄ£¿éÓÐûÓÐÊÕËõ×Ö > > > > ·û´®³ØµÄ·½·¨¡£¶ÔÓÚÓÐÔËÐÐʱµÄÈí¼þ»·¾³£¬¾³£»áÓöµ½ÕâÖÖ¹ýÓ̲»¼°µÄ·³ÄÕ¡£ > > > > > > ÕâЩ×î»ù±¾µÄ¹¦ÄÜͨ³£²»»áÓÐʲôÎÊÌ⣬²»È»¾ÍÌ«¿Ö²ÀÁË;-) > > > ÎÒ²ÂpymssqlµÄ¿ÉÄÜÐԽϴó£¬cÓÐʱºòÊÇÈÃÈ˺ÜÍ·Í´µÄ¡£ > > > > > > µ±È»£¬»¹Óиö¸ü¼òµ¥µÄ·½·¨£¬Ð´¸ö¼òµ¥µÄ½Å±¾Ã¿¸ô30ÃësystemÒ»ÏÂpython > > > ****.py£¬»òÕß¼Óµ½crontabÀ´Ó´ËÊÀ½çÇ徲ɹ.... > > > > > > > > > > > ÔÚ07-4-10£¬vcc <vcc在163.com> дµÀ£º > > > > ͨ³£½â¾öÕâÖÖÎÊÌâʹÓÃ"Åųý·¨"¡£°ÑsleepÈ¥µô£¬È»ºóÒ»±ß×¢ÊÍÄãµÄ´ú > > > > ÂëÒ»±ßÅÜ£¬ > > > > Ò»µãÒ»µãµÄÅųý£¬Ê²Ã´Ê±ºò·¢ÏÖÄÚ´æ²»±äÁË£¬´ó¸Å¾ÍÕÒµ½ÎÊÌâÁË¡£ > > > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070410/9db0cc06/attachment.htm
2007年04月10日 星期二 09:37
¤z¹À©O¡H¨C¦¸§Úµo¤@«Ê¶l¥ó´N¦Û°Ê¦^´_³oÓµ¹§Ú¡H¡H 2007/4/10, lianghonggang在tom.com <lianghonggang在tom.com>: > > honggangl在silc.com.cn -------------- 下一部分 -------------- ¤@?HTMLªþ¥ó³Q²¾°£... URL: http://python.cn/pipermail/python-chinese/attachments/20070410/ae9a5d6c/attachment.htm
2007年04月10日 星期二 13:59
ºÇºÇ ¿´À´ÊÇ×Ô¼ºµÄÊèºö pythonµÄ¿É¿¿ÐÔÊÇûÎÊÌâµÄ ²»¹ýpython2¡£2°æ±¾µÄÀ¬»ø»ØÊÕȷʵÓÐÎÊÌâ ÓõͰ汾µÄpythonµÄÐÖµÜ×¢ÒâÁË ÔÚ07-4-10£¬Zuggie <zuggie.zhu at gmail.com> дµÀ£º > > ÕÒµ½î}ÁË¡£ÊÂÉÏ£¬ÎÒß@ÓµÄץȡÎļþÓÐ×£¬×îé_ʼÎÒÿץȡÎļþ¶¼×ö³ÉÒ»³Ìʽ£¬ÎļþÈÈݾÍÊÇÏÂÃæµÄÄÇ£¬µ«ÊÇÄÇÓÉú³ÉÁ˺ܶàÌÐÐÎļþ¡£ºóíÎҸijÉÓÃÒ»ÎļþÌÐУ¬Õ{ÓÃÆäËûµÄÄÇЩץȡÎļþ£¬µ«ÊÇÔÚÿץÎļþÇ°ÃæÓÐ > > con = pymssql.connect(host =CDBConfig.DBConnects["host"], \ > user = CDBConfig.DBConnects ["user"], \ > password = CDBConfig.DBConnects ["password"], \ > database = CDBConfig.DBConnects["database"]) > ß@]È¥µô£¬ÄÇÿ´ÎÔÚ×¥ÎļþÇ°¶¼þÓÐÖØ×öÒ»´ÎµÃµ½ßB½Ó×Ö·û´®µÄß^³Ì¡£¬FÔÚ°Ñß@µÃµ½ßB½Ó×Ö·û´®·ÅÈë×îé_ʼֻÌÐÐÒ»´Î£¬È´æ]ÔÙÔö¼Ó¡£ > > > 2007/4/10, É¢Âþ¿áÄк¢ <17mxnet at gmail.com>: > > > > > > ÎÒÒ²×öץȡ > > > ÎÒÄÚ´æ×î¶à²»³¬¹ý10MB > > > CPU ²»³¬¹ý2% > > > > > > ³ÌÐòºÍÄã²î²»¶à ÿÌì´ó¸ÅÒª²É¼¯ 12´Î > > > ÿ´Î´ó¸Å 2W¸öÒ³Ãæ ·ÖÎö ¸üÐÂmysql > > > Èç¹ûÏ̴߳¦ÓÚ¹ÒÆð״̬µÄʱºò > > > ÄÚ´æÖ»ÓÐ500¶àKBµÄÕ¼Óà > > > ÔÚ 07-4-10£¬vcc< vcc at 163.com> дµÀ£º > > > > ÔÚ 2007-04-10¶þµÄ 00:41 +0800£¬ÁõöÎдµÀ£º > > > > > t_time = Y + "-" + M + "-" + D + " " + h + ":" + m + ":" + s > > > > > ½«ÕâÒ»ÐÐд³É''.join([...])µÄÐÎʽ£¬»òÕßÓÃformat£¬¾¡Á¿¼õÉÙÖмä×Ö·û´®µÄÉú > > > > > ³É£¬¿ÉÒÔÓÐЧ¼õÉÙ×Ö·û´®³ØÕ¼ÓÃÄÚ´æ¡£ÁíÍ⣬¿ÉÒÔ²éÔÄÒ»ÏÂgcÄ£¿éÓÐûÓÐÊÕËõ×Ö > > > > > ·û´®³ØµÄ·½·¨¡£¶ÔÓÚÓÐÔËÐÐʱµÄÈí¼þ»·¾³£¬¾³£»áÓöµ½ÕâÖÖ¹ýÓ̲»¼°µÄ·³ÄÕ¡£ > > > > > > > > ÕâЩ×î»ù±¾µÄ¹¦ÄÜͨ³£²»»áÓÐʲôÎÊÌ⣬²»È»¾ÍÌ«¿Ö²ÀÁË;-) > > > > ÎÒ²ÂpymssqlµÄ¿ÉÄÜÐԽϴó£¬cÓÐʱºòÊÇÈÃÈ˺ÜÍ·Í´µÄ¡£ > > > > > > > > µ±È»£¬»¹Óиö¸ü¼òµ¥µÄ·½·¨£¬Ð´¸ö¼òµ¥µÄ½Å±¾Ã¿¸ô30ÃësystemÒ»ÏÂpython > > > > ****.py£¬»òÕß¼Óµ½crontabÀ´Ó´ËÊÀ½çÇ徲ɹ.... > > > > > > > > > > > > > > ÔÚ07-4-10£¬vcc <vcc at 163.com> дµÀ£º > > > > > ͨ³£½â¾öÕâÖÖÎÊÌâʹÓÃ"Åųý·¨"¡£°ÑsleepÈ¥µô£¬È»ºóÒ»±ß×¢ÊÍÄãµÄ´ú > > > > > ÂëÒ»±ßÅÜ£¬ > > > > > Ò»µãÒ»µãµÄÅųý£¬Ê²Ã´Ê±ºò·¢ÏÖÄÚ´æ²»±äÁË£¬´ó¸Å¾ÍÕÒµ½ÎÊÌâÁË¡£ > > > > > > > _______________________________________________ > 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 > -- devdoer devdoer at gmail.com http://devdoer.blog.sohu.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070410/44393368/attachment-0001.htm
Zeuux © 2025
京ICP备05028076号