上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: 介绍 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 阅读(551) 评论(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 阅读(14) 评论(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 阅读(232) 评论(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 阅读(29) 评论(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 阅读(46) 评论(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 阅读(58) 评论(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 阅读(22) 评论(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 阅读(14) 评论(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 阅读(13) 评论(0) 推荐(0)
摘要: 1)查看仓库已配置的远程源 >: git remote >: git remote -v 2)查看remote命令帮助文档 >: git remote -h 3)删除远程源 >: git remote remove 源名 eg: git remote remove origin 4)添加远程源 >: 阅读全文
posted @ 2024-01-23 15:46 wellplayed 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页