12 2019 档案
摘要:查询全部的记录: select * from test_limit ; 查第一条记录: select * from test_limit limit 1; 查前面两条记录: select * from test_limit limit 0,2; 查第二和第三条记录: select * from te
阅读全文
摘要:八成是丢失连接了 while 1: try: self.conn.ping(reconnect=True) self.cur.execute(sql,tuple(item.values())) self.conn.commit() break except Exception as e: print
阅读全文
摘要:如果在运行爬虫时报此错:requests.exceptions.SSLError: HTTPSConnectionPool(host='www.baidu.com', port=443): Max retries exceeded with url: / (Caused by SSLError("C
阅读全文