会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
睁yan-ii
python
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
19
下一页
2020年12月23日
前端实现定时任务
摘要: <template> <section> <h1>hello world~</h1> </section> </template> <script> export default { data() { return { timer: '', value: 0 }; }, methods: { get
阅读全文
posted @ 2020-12-23 19:26 睁yan-ii
阅读(2481)
评论(0)
推荐(0)
2020年12月22日
python django redis 集合 实现在线人数
摘要: redis 版本 pip install redis==2.10.6 settings.py CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379
阅读全文
posted @ 2020-12-22 20:00 睁yan-ii
阅读(303)
评论(0)
推荐(0)
python 操作mongo 存入数据 取出 数据
摘要: import pymongo mongo_client=pymongo.MongoClient(host='localhost',port=27017) db=mongo_client.myip table=db.myabac # 存入 table_echart.insert({}) aaa=tab
阅读全文
posted @ 2020-12-22 19:54 睁yan-ii
阅读(387)
评论(0)
推荐(0)
git 将dev分支的代码合并到master
摘要: 一、在dev分支上运行以下命令 1. git add . // 暂存所有更改 2. git commit -m "更改的备注信息" // 将修改 提交到本地仓库,双引号内是提交的备注信息 3. git pull origin dev // 拉取远程dev分支代码 4. git push origin
阅读全文
posted @ 2020-12-22 19:51 睁yan-ii
阅读(4185)
评论(0)
推荐(1)
Python操作Redis之有序集合
摘要: reids 版本 redis 2.10.6 import redis from idlelib.IOBinding import encoding from pip.utils import Inf pool=redis.ConnectionPool(host='192.168.1.106',por
阅读全文
posted @ 2020-12-22 19:48 睁yan-ii
阅读(126)
评论(0)
推荐(0)
git错误unable to create symlink ssl...Could not reset index file to revision ‘HEAD‘的解决方法
摘要: git reset --hard 报错信息 error: unable to create symlink ssl: Permission denied fatal: Could not reset index file to revision 'HEAD'
阅读全文
posted @ 2020-12-22 19:46 睁yan-ii
阅读(6385)
评论(0)
推荐(0)
2020年12月18日
django 获取访问的ip
摘要: if request.META.get('HTTP_X_FORWARDED_FOR'): ip = request.META.get("HTTP_X_FORWARDED_FOR") else: ip = request.META.get("REMOTE_ADDR") print("ip : ", i
阅读全文
posted @ 2020-12-18 21:11 睁yan-ii
阅读(373)
评论(0)
推荐(0)
装饰器的使用
摘要: def my_decorator(func): def wrapper(request,*args,**kwargs): print('装饰器被调用了') return func(request,*args,**kwargs) # 调 post 方法 return wrapper 调用
阅读全文
posted @ 2020-12-18 21:10 睁yan-ii
阅读(60)
评论(0)
推荐(0)
vue 点击按钮获取60秒倒计时
摘要: html <div class="button"><van-button type="info" v-show="show" @click="getCode">获取验证码</van-button><van-button type="info" v-show="!show" class="count"
阅读全文
posted @ 2020-12-18 21:07 睁yan-ii
阅读(1578)
评论(0)
推荐(0)
中间件格式
摘要: from django.utils.deprecation import MiddlewareMixin class Myddleware(MiddlewareMixin): def process_request(self, request): pass def process_view(self
阅读全文
posted @ 2020-12-18 21:06 睁yan-ii
阅读(107)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
19
下一页
公告