会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
whitesky_root
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
11
下一页
2021年6月22日
python reload 模块重载 文件热重载
摘要: Python中的import语句可以导入module文件,但是import语句只是第一次导入的时候会执行module文件中的代码,然后就会把导入的模块文件存入到内存,当再次导入的时候,Python是直接从内存里面取出module文件,而不会执行module文件的内容了,而reload函数强制Pyth
阅读全文
posted @ 2021-06-22 11:05 whitesky-root
阅读(1523)
评论(0)
推荐(0)
2021年5月24日
合并去重
摘要: # 2个列表中的字典,根据字典的指定字段:tag_info去重 a = [{'version': '13', 'tag_info': 'tag:shifou-3232661', 'commit_id': '720eb278b7efe5b259413190a75c6f2be984bade'}, {'v
阅读全文
posted @ 2021-05-24 11:52 whitesky-root
阅读(109)
评论(0)
推荐(0)
2021年5月7日
Python操作excel、CSV
摘要: https://github.com/pilicurg/GetCsvColumn/blob/master/GetCsvColumn.py https://blog.csdn.net/Allyli0022/article/details/79125672 https://www.cnblogs.com
阅读全文
posted @ 2021-05-07 19:04 whitesky-root
阅读(59)
评论(0)
推荐(0)
2021年1月16日
celery并发方式
摘要: Celery支持不同的并发和序列化的手段 并发:Prefork, Eventlet, gevent, threads/single threaded 序列化:pickle, json, yaml, msgpack. zlib, bzip2 compression, Cryptographic mes
阅读全文
posted @ 2021-01-16 20:18 whitesky-root
阅读(1845)
评论(2)
推荐(0)
2021年1月8日
Python线程超时控制
摘要: # #!/usr/bin/env python # # coding: utf-8 # # https://www.cnblogs.com/scolia/p/6132950.htmlhttps://www.cnblogs.com/madsnotes/articles/5688681.html imp
阅读全文
posted @ 2021-01-08 10:13 whitesky-root
阅读(1884)
评论(0)
推荐(0)
2020年5月30日
django migrations 采坑
摘要: django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency users.0001_initial on data
阅读全文
posted @ 2020-05-30 23:31 whitesky-root
阅读(419)
评论(0)
推荐(0)
2020年5月20日
strace 小结
摘要: strace是什么? Strace是一个用来跟踪系统调用的简易工具。它最简单的用途就是跟踪一个程序整个生命周期里所有的系统调用,并把调用参数和返回值以文本的方式输出。 当然它还可以做更多的事情: strace可以过筛选出特定的系统调用。 strace可以记录系统调用的次数,时间,成功和失败的次数。
阅读全文
posted @ 2020-05-20 11:34 whitesky-root
阅读(200)
评论(0)
推荐(0)
2020年4月21日
vim复制粘贴取消缩进
摘要: :set paste https://www.cnblogs.com/end/archive/2012/06/01/2531147.html
阅读全文
posted @ 2020-04-21 11:11 whitesky-root
阅读(233)
评论(0)
推荐(0)
2020年3月27日
zip、tar 压缩文件时排除某个文件夹
摘要: zip -r XXXX.20190709.zip YYYYY -x "XXXXX/mlsf/*" 注意:“”这个是关键,没有加“”,将不起作用。 zip -r marathon.20190709.zip marathon -x "marathon/mlsf/*" tar -zcvf test.tar
阅读全文
posted @ 2020-03-27 15:50 whitesky-root
阅读(891)
评论(0)
推荐(0)
2020年3月23日
docker 常用命令 docker-compose参数
摘要: 日志: docker logs -t --since="2020-02-27T07:00:00" 4c04ea1238ab |less docker exec -it dbm-service bash rpm -qa | grep -i 'docker' if [ $? == 0 ] ; then
阅读全文
posted @ 2020-03-23 11:36 whitesky-root
阅读(5134)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
11
下一页
公告