会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Zeng
Think Twice, Code Once
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
24
下一页
2024年2月7日
Vue中使用Echarts
摘要: 第一步:安装echarts模块 cnpm install echarts -S 第二步:在 main.js中全局引入 import echarts from 'echarts' Vue.prototype.$echarts = echarts // 全局引入 后面用this.$echarts就能直接
阅读全文
posted @ 2024-02-07 23:21 wellplayed
阅读(55)
评论(0)
推荐(0)
2024年2月3日
vue2.x的项目运行问题(export,set)
摘要: 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
阅读(113)
评论(0)
推荐(0)
2024年1月30日
vue-core-video-player的使用
摘要: 介绍 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
阅读(605)
评论(0)
推荐(0)
2024年1月29日
Django中使用celery注意事项
摘要: 第一步:把封装的包:celery_task 复制到项目中 第二步:在celery.py 文件中加入 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'luffy_api.settings.dev') 第三步:写任务,启动worker 第四步:在djan
阅读全文
posted @ 2024-01-29 19:27 wellplayed
阅读(36)
评论(0)
推荐(0)
celery实现异步任务、定时任务和延迟任务
摘要: 1.异步任务 任务名.delay(传参数) 2.延迟任务 from datetime import datetime, timedelta # atetime.utcnow() 当前utc时间 # 当前时间+15秒 eta = datetime.utcnow() + timedelta(second
阅读全文
posted @ 2024-01-29 19:15 wellplayed
阅读(261)
评论(0)
推荐(0)
celery的快速使用
摘要: 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
阅读(53)
评论(0)
推荐(0)
2024年1月28日
Redis之list操作
摘要: 1 lpush(name, values) # resp:上面是左,下面是右 conn.lpush('girls', '刘亦菲') # 从左侧插入值 conn.lpush('girls', '迪丽热巴') # 从左侧插入值 2 rpush(name, values) 表示从右向左操作 conn.rp
阅读全文
posted @ 2024-01-28 21:17 wellplayed
阅读(72)
评论(0)
推荐(0)
Redis之hash操作
摘要: 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
阅读(74)
评论(0)
推荐(0)
Redis字符串操作
摘要: 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
阅读(43)
评论(0)
推荐(0)
Redis的基本使用
摘要: 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
阅读(43)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
24
下一页
公告