摘要:
from urllib import request,parseimport json# 翻译函数def fanyi(msg): #参数封装 data = { "kw": content } #参数拼接以及转码 data = parse.urlencode(data) #请求地址 base_url 阅读全文
摘要:
#1、引入模块from urllib import request#2、操作#(1)定义目标urlbase_url = "http://www.langlang2017.com/index.html"#请求头部 request headersheaders = { "Accept":"text/ht 阅读全文