会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小王八+1
就是这么宠你!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
14
下一页
2021年1月21日
python操作mysql基础增删改查的简单封装
摘要: 传入对象实现增删改查,无需自己手动拼接 代码地址:https://github.com/luke315/connect_mysql 例 增加: # 传入的objinsert_obj = { # 增加 ,select和where可为空 'id': 111, 'order': 111, 'order_i
阅读全文
posted @ 2021-01-21 16:11 小王八+1
阅读(92)
评论(0)
推荐(0)
2021年1月19日
scrapy-redis报错[scrapy.utils.signal] ERROR: Error caught on signal handler
摘要: scrapy.utils.signal] ERROR: Error caught on signal handler 在make_requests_from_url里 需要把yield改为return
阅读全文
posted @ 2021-01-19 17:09 小王八+1
阅读(1652)
评论(0)
推荐(0)
2021年1月11日
centos 7配置chrome和chromedriver
摘要: 1.chrome yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm 2.安装必要的库 yum install mesa-libOSMesa-devel gnu-free-san
阅读全文
posted @ 2021-01-11 12:46 小王八+1
阅读(217)
评论(0)
推荐(0)
使用centOS 7配置nodeJS开发环境
摘要: wget https://nodejs.org/dist/v8.9.1/node-v8.9.1-linux-x64.tar.xz 创建一个文件夹node mkdir node 解压: tar xvf node-v8.9.1-linux-x64.tar.xz --strip-components=1
阅读全文
posted @ 2021-01-11 12:27 小王八+1
阅读(183)
评论(0)
推荐(0)
2020年12月29日
django服务常见问题-跨域和静态文件配置
摘要: 1.跨域问题 pip install django-cors-headers 模块 setting配置apps和中间件、 'corsheaders', 'corsheaders.middleware.CorsMiddleware', # 放最前面 跨域 CORS_ORIGIN_ALLOW_ALL =
阅读全文
posted @ 2020-12-29 16:47 小王八+1
阅读(420)
评论(0)
推荐(0)
2020年12月14日
asyncio四个基本概念
摘要: 四个基本概念: Eventloop(中央总控) Eventloop实例提供了注册、取消和执行任务和回调的方法 Coroutine(转交协程任务给其他函数) Future() Future是协程的封装,Future对象提供了很多任务方法(如完成后的回调、取消、设置任务结果等等) Task Future
阅读全文
posted @ 2020-12-14 17:51 小王八+1
阅读(99)
评论(0)
推荐(0)
2020年12月11日
python魔法函数(常见)
摘要: __init__ 构造函数,类初始化时执行 __del__ 析构函数,类的对象引用结束时执行 __new__ 类实例化时执行 __call__ 把类的方法,直接作为函数调用时执行 __str__ 打印输出是执行 __get/set/delitem__ 操作类的容器属性,get获取不到属性时执行,se
阅读全文
posted @ 2020-12-11 09:47 小王八+1
阅读(107)
评论(0)
推荐(0)
2020年12月9日
redis 哈希封装
摘要: import redis Pool = redis.ConnectionPool(host='127.0.0.1', port=6379, db=11, max_connections=10) # 封装Hash方法 class RedisDB: def __init__(self, key): #
阅读全文
posted @ 2020-12-09 15:46 小王八+1
阅读(98)
评论(0)
推荐(0)
2020年7月14日
数据库去重
摘要: 查询SELECT * FROM table A WHERE ( A.the_date, A.exponent_code, A.exponent_value ) IN ( SELECT the_date, exponent_code, exponent_value FROM table GROUP B
阅读全文
posted @ 2020-07-14 16:10 小王八+1
阅读(189)
评论(0)
推荐(0)
2020年4月12日
nginx,wsgi,uwsig区别
摘要: 首先作为web开发必须要有web服务器, 三者区别: nginx是web服务器,可以做负载均衡,正反向代理, wsgi是web服务协议,所有web访问必须遵守 Web服务器网关接口(Python Web Server Gateway Interface,缩写为WSGI)是为Python语言定义的We
阅读全文
posted @ 2020-04-12 13:10 小王八+1
阅读(437)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
14
下一页
公告