文章分类 - print
摘要:print(resp.read.decode("uef-8")) # 用utf-8读取响应的内容 resp.encoding = "gb2312" #指定字符集print(resp) # 响应状态码 print(resp.text) # 响应的内容变成文本 (字符串) print(resp.requ
阅读全文
摘要:print(web.title) # 固定的,获取到网站的title标签中的内容
阅读全文
摘要:print(resp.status) # 响应状态码 print(await resp.text()) # 拿到文本内容 await resp.content.read()
阅读全文

浙公网安备 33010602011771号