摘要: 背景介绍 1. 什么是爬虫 爬虫,即网络爬虫,大家可以理解为在网络上爬行的一直蜘蛛,互联网就比作一张大网,而爬虫便是在这张网上爬来爬去的蜘蛛咯,如果它遇到资源,那么它就会抓取下来。想抓取什么?这个由你来控制它咯。 比如它在抓取一个网页,在这个网中他发现了一条道路,其实就是指向网页的超链接,那么它就可 阅读全文
posted @ 2022-01-24 15:13 猪啊美 阅读(561) 评论(0) 推荐(0) 编辑
摘要: /etc/sysconfig/network-scripts下 vim ifcfg-ens33 内容改为 TYPE="Ethernet"PROXY_METHOD="none"BROWSER_ONLY="no"BOOTPROTO="static"DEFROUTE="yes"IPV4_FAILURE_F 阅读全文
posted @ 2021-05-12 09:09 猪啊美 阅读(118) 评论(0) 推荐(0) 编辑
摘要: pip install superset -i https://pypi.douban.com/simple pip install flask-appbuilder # 创建管理员账号 fabmanager create-admin --app superset 报错:在创建管理员账号时报:Att 阅读全文
posted @ 2021-05-07 09:21 猪啊美 阅读(828) 评论(1) 推荐(0) 编辑
摘要: python 代码 import base64 s = "6964KBYY54Eo8TZSVdsupHij+BWlI5owUQ2Pw9cqBSyw2pyJV4sS+n6k4n6IFu9wtIM,1606802560116" # "Njk2NEtCWVk1NEVvOFRaU1Zkc3VwSGlqK0J 阅读全文
posted @ 2021-02-27 10:02 猪啊美 阅读(618) 评论(0) 推荐(0) 编辑
摘要: notepad++ https://notepad-plus.en.softonic.com/ 安装jstools插件 在可用里找到jstools 安装即可 使用的时候 阅读全文
posted @ 2021-02-27 09:58 猪啊美 阅读(318) 评论(0) 推荐(0) 编辑
摘要: model 层定义如下 from django.db import models# Create your models here.class Types(models.Model): id = models.AutoField(primary_key=True) firsts = models.C 阅读全文
posted @ 2020-12-11 15:45 猪啊美 阅读(239) 评论(0) 推荐(0) 编辑
摘要: https://www.cs.usfca.edu/~galles/visualization/Algorithms.html 阅读全文
posted @ 2020-11-29 15:44 猪啊美 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 1 写出你知道的python所有数据类型与函数 2 写出列表去重二种方法加一种不用set和循环的方法 3 定义一个函数,这个函数可以求一堆参数的最大最小值,参数数量不一定 4 已知列表a = [1,2,4,7,9] 列表b = [2,4,9,10,21] 写个函数求出相同部分与不同部分 5 [[1, 阅读全文
posted @ 2020-11-26 14:28 猪啊美 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 添加一个用户,名字为自己的名字拼音,新建一个helloworld文件夹,将他的所属组做一个改变变为自己名字的群组 chgrp users helloworld 2 将helloworld 文件夹所属者改为你自己。 chown [-R]帐号名称档案或目录 3 将helloworld变为只有所有者可 阅读全文
posted @ 2020-11-26 09:41 猪啊美 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 列表去重的四种方法如下 #方法一 AList = [1, 2, 3, 1, 2] print(list(set(AList))) lists = [] while len(AList)!=0: num = AList.pop() if num not in lists: lists.append(n 阅读全文
posted @ 2020-11-25 15:23 猪啊美 阅读(247) 评论(0) 推荐(0) 编辑