摘要: stop-writes-on-bgsave-error:https://blog.csdn.net/weixin_39472415/article/details/99703185,运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-w 阅读全文
posted @ 2020-03-27 18:56 鱼虫光 阅读(144) 评论(0) 推荐(0) 编辑
摘要: redis通信基本了解 Redis 客户端与服务端之间的通信协议是在 TCP 协议上构建的。Redis 定义了 RESP(Redis Serialization Protocol,Redis 序列化协议)实现客户端与服务端的通信,协议本身很简洁。 请求格式 格式: *<参数数量>CRLF $<参数1 阅读全文
posted @ 2020-03-26 22:47 鱼虫光 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 爬虫 scrapy开启请求 简便方式 import scrapyclass QuotesSpider(scrapy.Spider): name = "quotes" start_urls = [ 'http://quotes.toscrape.com/page/1/', 'http://quotes 阅读全文
posted @ 2020-03-17 22:34 鱼虫光 阅读(157) 评论(0) 推荐(0) 编辑
摘要: scrapy基本架构 scrapy每个模块的作用 阅读全文
posted @ 2020-03-17 14:25 鱼虫光 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 是是是 阅读全文
posted @ 2020-03-11 17:40 鱼虫光 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import re from collections import OrderedDict from django.conf import settings from django.utils.module_l 阅读全文
posted @ 2020-03-11 15:50 鱼虫光 阅读(972) 评论(0) 推荐(0) 编辑
摘要: sys.argv 命令行参数 List,第一个元素是程序本身路径 sys.modules.keys() 返回所有已经导入的模块列表 sys.exc_info() 获取当前正在处理的异常类,exc_type、exc_value、exc_traceback 当前处理的异常详细信息 sys.exit(n) 阅读全文
posted @ 2020-03-05 21:36 鱼虫光 阅读(84) 评论(0) 推荐(0) 编辑
摘要: os.remove()删除文件 os.rename()重命名文件 os.walk()生成目录树下的所有文件名 os.chdir()改变目录 os.mkdir/makedirs 创建目录/多层目录 os.rmdir/removedirs 删除目录/多层目录(必须是空,否则会报错) os.listdir 阅读全文
posted @ 2020-03-05 21:31 鱼虫光 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 安装java环境 安装jdk 配置环境变量 在系统变量下点击新建 -> 变量名: JAVA_HOME -> 变量值: C:\Program Files\Java\jdk1.8.0 -> 点击确定按钮 在系统变量下点击新建 -> 变量名: CLASSPATH -> 变量值: .;%JAVA_HOME% 阅读全文
posted @ 2020-02-29 00:37 鱼虫光 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 洋葱头: https://blog.csdn.net/weixin_43351935/article/details/100314683 git fork和clone;fetch和pull: https://blog.csdn.net/weberhuangxingbo/article/details 阅读全文
posted @ 2020-02-16 00:34 鱼虫光 阅读(117) 评论(0) 推荐(0) 编辑