python的坑记录

import urllib.request as r from bs4 import BeautifulSoup import json import sys import importlib import requests def articleSecond(): url = '' # 用get函数发送GET请求,获取响应 res = requests.get(url) # 设置响应的编码格式utf-8(默认格式为ISO-8859-1),防止中文出现乱码 res.encoding = 'utf-8' f2...
2019-08-05 15:36 | 阅读 907 次 | 评论 0 条
浏览2054次
文章归档