上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页
摘要: Fiddler中Response 的Raw乱码问题解决 有时候我们看到Response中的HTML是乱码的, 这是因为HTML被压缩了, 我们可以通过两种方法去解压缩。 1. 点击Response Raw上方的"Response body is encoded. click to decode." 阅读全文
posted @ 2018-06-04 00:42 阿谋 阅读(1360) 评论(0) 推荐(0)
摘要: URL编码格式函数描述: 注: urllib2 在python3中变为 urllib.request注: urllib.urlencode 在python3中变为 urllib.parser.urlencode 编码: 编码工作使用的urllib.parse.urlencode()函数, 帮我们将k 阅读全文
posted @ 2018-06-03 15:43 阿谋 阅读(244) 评论(0) 推荐(0)
摘要: urllib2 的异常错误处理 在我们用urlopen或opener.open方法发出一个请求时,如果urlopen或opener.open不能处理这个response,就产生错误。 这里主要说的是URLError和HTTPError,以及对它们的错误处理。 URLError URLError 产生 阅读全文
posted @ 2018-06-03 14:06 阿谋 阅读(4431) 评论(0) 推荐(0)
摘要: 一劳永逸解决:TypeError: cannot use a string pattern on a bytes-like object 一劳永逸解决:TypeError: cannot use a string pattern on a bytes-like object TypeError: c 阅读全文
posted @ 2018-06-02 23:47 阿谋 阅读(4022) 评论(0) 推荐(0)
摘要: 有道桌面程序 from tkinter import * from tkinter import messagebox import requests def translation(): # 获取用户输入的单词 content = entry.get() print(content) if con 阅读全文
posted @ 2018-06-02 22:12 阿谋 阅读(221) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页