![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HTML学习
Nurbiya_K
坚持是件很酷的事情!
展开
-
重置样式表——去掉浏览器默认的网页样式
默认样式: 通常情况下,浏览器都会为元素设置一些默认样式 默认样式的存在会影响到页面的布局,通常情况下编写网页 时必须要去除浏览器的默认样式(pc端要去除掉浏览器的默认样式) 一般浏览器默认样式对块元素会留下一点外边距 就是说不会紧贴浏览器边缘,这个时候就需要给整个浏览器 添加一些样式,比如 margin :0 ; body 是对整个浏览器原创 2020-10-22 18:54:23 · 1691 阅读 · 0 评论 -
"ResultSet object has no attribute '%s'. You're probably treating a list of elements like a single e
"ResultSet object has no attribute ‘%s’. You’re probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?" % key AttributeError: ResultSet obje...原创 2020-03-16 01:02:12 · 8698 阅读 · 1 评论 -
HTML
查看网页源代码: import requests res=requests.get('URL') print(res.status_code) print(res.text) 下载网页源代码到本地: import requests res=requests.get('https://localprod.pandateacher.com/python-manuscript/craw...原创 2020-03-10 11:11:25 · 139 阅读 · 0 评论