上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页
摘要: URL编码格式函数描述: 注: urllib2 在python3中变为 urllib.request注: urllib.urlencode 在python3中变为 urllib.parser.urlencode 编码: 编码工作使用的urllib.parse.urlencode()函数, 帮我们将k 阅读全文
posted @ 2018-06-03 15:43 阿谋 阅读(254) 评论(0) 推荐(0)
摘要: urllib2 的异常错误处理 在我们用urlopen或opener.open方法发出一个请求时,如果urlopen或opener.open不能处理这个response,就产生错误。 这里主要说的是URLError和HTTPError,以及对它们的错误处理。 URLError URLError 产生 阅读全文
posted @ 2018-06-03 14:06 阿谋 阅读(4447) 评论(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 阿谋 阅读(4048) 评论(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 阿谋 阅读(224) 评论(0) 推荐(0)
摘要: HTTP代理神器Fiddler Fiddler是一款强大Web调试工具,它能记录所有客户端和服务器的HTTP请求。 Fiddler启动的时候,默认IE的代理设为了127.0.0.1:8888,而其他浏览器是需要手动设置。 工作原理 Fiddler 是以代理web服务器的形式工作的,它使用代理地址:1 阅读全文
posted @ 2018-06-01 22:17 阿谋 阅读(987) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 34 下一页