摘要:
1·解决python爬虫requests.exceptions.SSLError: HTTPSConnectionPool(host='XXX', port=443)问题 方法:先检查pip有没安装cryptography,pyOpenSSL,certifi要是没有先安装 pip install c 阅读全文
摘要:
import pymysql conn = pymysql.connect(host='127.0.0.1', user='root', password='123', db='videos', charset='utf8') cursor = conn.cursor() # 建立存放电影数据的表d 阅读全文
摘要:
# coding utf-8 import socket # Address from email.policy import HTTP HOST = '127.0.0.1' PORT = 8000 # Prepare HTTP response text_content = ''''' HTTP/ 阅读全文