![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
u010096984
这个作者很懒,什么都没留下…
展开
-
Python thread and log
[code="java"]import sys import time import datetime import threading import logging from Queue import Queue class Worker(threading.Thread): def __init__(self, thread_name, queue, logger): ...原创 2011-09-10 23:13:02 · 121 阅读 · 0 评论 -
Python MySQL Connect Idle Timeout
[code="java"]import sys import time import MySQLdb db = MySQLdb.connect('localhost', 'root', 'root', 'sexample'); time.sleep(20) # show processlist # kill id try: print "before ping" ...原创 2011-09-30 00:32:39 · 236 阅读 · 0 评论