摘要: #!/usr/bin/pythonimport MySQLdbclass SpiderPDO: def __init__(self): db_host = '127.0.0.1' db_user = 'root' db_pass = '666666' db_name = 'db01' conn = MySQLdb.connect(db_host, db_user, db_pass, db_name, charset = 'utf8') self.cursor = conn.cursor(cursorcl... 阅读全文
posted @ 2013-08-28 15:59 aboys 阅读(1414) 评论(0) 推荐(0) 编辑