摘要: pip 官网:https://pypi.org/project/pip/ #切换到下载的包目录下 python setup.py install 阅读全文
posted @ 2022-11-13 10:40 chenwandong 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 导入数据 import requests import re 请求数据 for page in range(1, 126): url = 'https://wallhaven.cc/toplist?page={}'.format(page) headers = { 'user-agent': 'Mo 阅读全文
posted @ 2022-11-02 09:41 chenwandong 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 方法distinct()对数据进行去重 语法: db.集合名称.distinct('去重字段',{条件}) 例1:查找年龄大于18的性别(去重) db.stu.distinct('gender',{age:{$gt:18}}) 阅读全文
posted @ 2022-10-28 10:36 chenwandong 阅读(873) 评论(0) 推荐(0) 编辑
摘要: pip install numpy numpy.array()函数,强大的N维数组对象 ndarray import numpy as np a = np.array([1,2,3]) print (a) [1 2 3]# 多于一个维度 import numpy as np a = np.array 阅读全文
posted @ 2022-10-26 18:42 chenwandong 阅读(54) 评论(0) 推荐(0) 编辑
摘要: Pandas 是基于 NumPy 的一个开源 Python 库,它被广泛用于快速分析数据,以及数据清洗和准备等工作。它的名字来源是由“ Panel data”(面板数据,一个计量经济学名词)两个单词拼成的。简单地说,你可以把 Pandas 看作是 Python 版的 Excel。 import pa 阅读全文
posted @ 2022-10-26 16:31 chenwandong 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 前言 环境使用 Python 3.8 Pycharm 模块使用 import requests —> 数据请求模块 pip install requests import parsel —> 数据解析模块 pip install parsel from selenium import webdriv 阅读全文
posted @ 2022-10-25 20:24 chenwandong 阅读(947) 评论(0) 推荐(0) 编辑
摘要: 网址:https://www.yynote.cn/ 阅读全文
posted @ 2022-10-25 15:55 chenwandong 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 菜鸟教程:https://www.runoob.com/php/php-variables.html PHP 脚本可以放在文档中的任何位置。 PHP 脚本以 <?php 开始,以 ?> 结束 PHP 中的每个代码行都必须以分号结束 注释 // 输出 ehco echo "<h2>PHP 很有趣!</ 阅读全文
posted @ 2022-10-25 14:58 chenwandong 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #!/usr/local/bin/lua 注释 -- 输出 print("Hello World!") 数据类型 1、nil 这个最简单,只有值nil属于该类,表示一个无效值(在条件表达式中相当于false)。2、boolean 包含两个值:false和true。3、number 表示双精度类型的实 阅读全文
posted @ 2022-10-21 19:44 chenwandong 阅读(497) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_40340586/article/details/119457955 记录一下自己的爬虫踩过的坑,上一次倒是写了一些,但是写得不够清楚,这次,写清楚爬取的过程。 这个网站是某省的志愿服务网。 就是它了。 我向爬取一些组织开展过的活动,比如这一 阅读全文
posted @ 2022-10-21 11:00 chenwandong 阅读(998) 评论(0) 推荐(0) 编辑