![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
不喜欢蛋挞的蛋挞
这个作者很懒,什么都没留下…
展开
-
AttributeError: 'set' object has no attribute 'items'
import requestsfrom lxml import etreeurl = ‘https://www.csdn.net/’header = {‘user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/...原创 2019-12-06 22:21:52 · 2181 阅读 · 2 评论 -
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接-----求指教
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。import socketsocket请求一张图片http://desk.zol.com.cn/bizhi/8341_103503_2.htmlsocket.setdefaulttimeout(20) # 设置socket层的超时时间为20秒b = socket.socket(...原创 2019-12-06 20:10:23 · 3074 阅读 · 1 评论 -
Python之pycharm安装后的运行
在安装完pycharm后不能运行发生的错误pycharm无法找到解释器,无法编译,进入setting=>然后点击apply,便可以点击run运行或者ctrl+shift+f10运行原创 2019-06-03 16:01:39 · 455 阅读 · 0 评论 -
python的tornado搭建socket服务器基本操作无法访问
单词写错,是RequestHandler,而不是RedirectHandler原创 2019-07-05 14:52:52 · 424 阅读 · 0 评论