Python论坛  - 讨论区

标题:[python-chinese] =?GB2312?B?UmU6IFtweXRob24tY2hpbmVzZV0gUmU6IFtweXRob24tYw==?= =?GB2312?B?aGluZXNlXSBSZSA6IFtweXRob24tY2hpbmVzZV0gg8i05s/7usQ=?=

2007年04月10日 星期二 09:33

Zuggie zuggie.zhu在gmail.com
星期二 四月 10 09:33:06 HKT 2007

ÕÒµ½†–î}ÁË¡£ÊŒÉÏ£¬ÎÒß@˜ÓµÄץȡÎļþÓЎׂ€£¬×îé_ʼÎÒÿ‚€×¥È¡Îļþ¶¼×ö³ÉÒ»‚€³Ìʽ£¬ÎļþƒÈÈݾÍÊÇÏÂÃæµÄÄǂ€£¬µ«ÊÇÄǘÓÉú³ÉÁ˺ܶàˆÌÐÐÎļþ¡£ºóíÎҸ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 

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

2007年04月10日 星期二 09:37

Zuggie zuggie.zhu在gmail.com
星期二 四月 10 09:37:17 HKT 2007

¤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 

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

2007年04月10日 星期二 13:59

bird devdoer devdoer在gmail.com
星期二 四月 10 13:59:27 HKT 2007

ºÇºÇ  ¿´À´ÊÇ×Ô¼ºµÄÊèºö 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 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号