![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
文章平均质量分 61
LeicyII
关注我,为你列出每个常用知识点的细节,让你搜索使用起来清新无废话,日常更新
展开
-
numpy-python实例
Numpy库各种实例 import numpy as np #第一个 print('------------------------------') arr0 = np.array([1, 2, 3, 4]) #通过列表创建一维数组 print(arr0) #第二个 print('------------------------------') arr1 = np.array([[1, 2], [3, 4]]) #通过列表穿件二维数组 print(arr1) #第三个 print('-------原创 2021-03-09 19:29:29 · 167 阅读 · 0 评论 -
001Python-Requests库
Requests库的使用 1、Requests库的7个主要方法 方法 说明 requests.request() 构造一个请求,支持一下各方法的基础方法 requests.get() 获取HTML网页的主要方法,对应于HTTP的GET requests.head() 获取HTML网页头信息的方法,对应于HTTP的HEAD requests.post() 向HTML网页提交POST请求的方法,对应于HTTP的POST requests.put() 向HTML网页提交PUT请求的原创 2021-03-04 22:25:18 · 153 阅读 · 1 评论 -
004Python -Beautiful Soup库入门
Beautiful Soup 库的基本元素 1、Beautiful Soup库的理解: beautiful Soup库是解析、遍历、维护“标签树”的功能库 2、 引用方式: from bs4 import BeautifulSoup import bs4 注释:Beautiful Soup 库,也叫beautifulsoup4或bs4 3、Beautiful Soup库解析器 soup = BeautifulSoup(’<html>data<html>’,‘html.pars原创 2021-03-04 21:04:17 · 208 阅读 · 3 评论