自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 python中select选择器

soupsieve.util.SelectorSyntaxError: Malformed class selector at position 2我的原因应该是 我查找的class中有空格

2020-11-21 21:48:53 2937 1

原创 爬虫问题—AttributeError: ‘NoneType‘ object has no attribute ‘find‘

(1)AttributeError: ‘NoneType’ object has no attribute 'find’ 解决方法1: 可能是html出现错误了吧rep=requests.get(url,headers=header,timeout=timeout)rep.encoding='utf-8'尽可能采用requests

2020-11-21 21:31:54 1000 1

转载 爬虫之lxml

https://www.pythonf.cn/read/47

2020-11-21 21:03:30 179

转载 爬虫之将列表写入csv文件

https://blog.csdn.net/waple_0820/article/details/70049953(1)方法一:pandas包(2)方法二:csv包

2020-11-21 20:22:26 664

转载 爬虫-定位网页元素

https://blog.csdn.net/rankun1/article/details/81357179

2020-11-21 16:28:37 168

原创 pycharm下载requests模块失败

在settings里下载requests模块,下载不了好奇怪最后我先下了个request然后就可以下requests

2020-11-21 16:26:45 1449 2

原创 TypeError: cannot use a string pattern on a bytes-like object

爬虫时遇到问题:TypeError: cannot use a string pattern on a bytes-like objecterror在findall处这是python2和python3之间的差别引起的需要加上语句:html=html.decode(“utf-8”)

2020-11-20 19:39:07 155

转载 正则表达式re.findall

https://www.cnblogs.com/xieshengsen/p/6727064.html

2020-11-20 18:28:54 129

转载 正则表达式re中的group含义

https://blog.csdn.net/jeryjeryjery/article/details/77196497```pythonimport re#定义了两个group,因为包含两个括号m = re.match("(\w+) (\w+)", "Isaac Newton, physicist")#group(0)就是匹配的整个结果print(m.group(0)) #输出结果为Isaac Newton#group(1)是第一

2020-11-20 16:21:35 480

转载 urlopen返回对象

https://blog.csdn.net/jasonLee_lijiaqi/article/details/79385200

2020-11-20 16:06:09 534

原创 socket的send方法

socket的send方法出现错误:TypeError: a bytes-like object is required, not ‘str’python 3.5 不能直接的传入字符串需要传入bytes-like 对象 ,需要对你使用字符串encode()方法解决方法:服务器端用encode客户端用decode...

2020-11-20 15:48:32 1264

原创 python之套接字socket

服务端与客户端原理:

2020-11-20 15:47:02 69

转载 python中SQLite操作

https://www.runoob.com/sqlite/sqlite-python.html

2020-11-20 15:08:06 50

原创 python数据库 sqlit3

sqlite3.OperationalError: near “CREAT”: syntax error可能是建表语句出现错误 CREATE不是CREAT建表语句颜色为下图时,应该算成功了(1)错误解析1

2020-11-20 14:40:24 228

转载 GUI之事件处理bind

(1)https://www.cnblogs.com/pinpin/p/10040771.html(2)https://blog.csdn.net/JNingWei/article/details/78299150

2020-11-19 15:42:02 165

转载 tkinter空间参数介绍

https://www.cnblogs.com/progor/p/8505097.html

2020-11-19 15:02:48 93

转载 %02x是什么意思

https://blog.csdn.net/strugglelg/article/details/17300797

2020-11-19 14:50:45 1384

转载 Python图形界面之GUI

https://www.runoob.com/python/python-gui-tkinter.html

2020-11-19 10:48:16 111

原创 android studio将一个页面信息传送到另一个页面并显示

(1)新建project,如下图所示:(2)此次需要页面跳转,因此我们需要两个Activity,两个XML文件。第(1)步新建的preject已经有一个MainActivity.java文件。按上图示操作,我们需要新建的是一个名为DisplayActivity.java(自取)的Activity。这会在Layout中自动生成文件名为activity_display的XML文件。(3)完成以...

2020-02-25 11:20:18 16962 3

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除