上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页
摘要: Windows系统 修改package.json文件: "scripts": { "serve": "set NODE_OPTIONS openssl-legacy-provider && vue-cli-service serve", "build": "set NODE_OPTIONS open 阅读全文
posted @ 2024-02-03 16:41 wellplayed 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 介绍 vue-core-video-player是一款基于vue.js的视频播放器组件 安装与使用 安装 cnpm install vue-core-video-player -S 使用 第一步:main.js引入 import VueCoreVideoPlayer from 'vue-core-v 阅读全文
posted @ 2024-01-30 20:53 wellplayed 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 第一步:把封装的包:celery_task 复制到项目中 第二步:在celery.py 文件中加入 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'luffy_api.settings.dev') 第三步:写任务,启动worker 第四步:在djan 阅读全文
posted @ 2024-01-29 19:27 wellplayed 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.异步任务 任务名.delay(传参数) 2.延迟任务 from datetime import datetime, timedelta # atetime.utcnow() 当前utc时间 # 当前时间+15秒 eta = datetime.utcnow() + timedelta(second 阅读全文
posted @ 2024-01-29 19:15 wellplayed 阅读(118) 评论(0) 推荐(0) 编辑
摘要: celery的快速使用 1.安装celery模块 pip install celery 2.书写demo.py文件 from celery import Celery import time broker = 'redis://127.0.0.1:6379/1' backend = 'redis:/ 阅读全文
posted @ 2024-01-29 19:04 wellplayed 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1 lpush(name, values) # resp:上面是左,下面是右 conn.lpush('girls', '刘亦菲') # 从左侧插入值 conn.lpush('girls', '迪丽热巴') # 从左侧插入值 2 rpush(name, values) 表示从右向左操作 conn.rp 阅读全文
posted @ 2024-01-28 21:17 wellplayed 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1 hset(name, key, value) 设置值 conn.hset('userinfo','name','xxx') conn.hset('userinfo','age',18) 2 hmset(name, mapping) 批量设置 conn.hmset('userinfo',{'nam 阅读全文
posted @ 2024-01-28 20:55 wellplayed 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1 set(name, value, ex=None, px=None, nx=False, xx=False) 设置值 conn.set('hobby','篮球') # 带过期时间 conn.set('age','19',ex=3) # 秒 # conn.set('age','19',px=300 阅读全文
posted @ 2024-01-28 20:40 wellplayed 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Python操作redis 1.普通链接 首先需要下载redis模块 pip install redis 使用方式(redis内需要插入name=xxx): from redis import Redis conn = Redis(host="localhost", port=6379, db=0, 阅读全文
posted @ 2024-01-28 16:01 wellplayed 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 项目中所有a.txt文件和文件夹都会被过滤 a.txt 项目中只有根目录下a.txt文件和文件夹会被过滤 /a.txt 项目中只有根目录下的b文件夹下的a.txt文件和文件夹会被过滤 /b/a.txt 名字中有一个x的都会被过滤(*代表0~n个任意字符) *x* 空文件夹不会被提交,空包会被提交,包 阅读全文
posted @ 2024-01-24 08:54 wellplayed 阅读(3) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页