python mysql 断开重新连接
import MySQLdbimport timedef connect(): try: connect_db = MySQLdb.connect( "111.5.52.8", "root", "12345678", "shuncom_mysql",connect_timeout=5,charset='utf8') connect_cursor = connec