摘要: Flask项目下的app下的settings.py配置 #!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "leo" __time__ = "2020-01-12" import os BASE_DIR = os.path.dirn 阅读全文
posted @ 2020-01-13 19:41 leo_23 阅读(883) 评论(0) 推荐(0) 编辑
摘要: django xlsx中文乱码问题解决: 详情: Python3.x在django中如何设置Content-Disposition,才能让浏览器正确保存中文命名的文件? 阅读全文
posted @ 2018-06-25 20:52 leo_23 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 问题: 在django app admin TabularInline类使用了下面引用了 raw_id_fields 还是找不到搜索小图标。模型引用的是在别的app的model下。 解决方案: yourapp.adminx.py 下面需要注册对应的模型。 阅读全文
posted @ 2018-06-22 16:34 leo_23 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 用ffmpeg吧,下载->(解密)->合并一个命令搞定 https://www.52pojie.cn/thread-588042-1-1.html ffmpeg -allowed_extensions ALL -i filename.m3u8 -c copy -bsf:a aac_adtstoasc 阅读全文
posted @ 2018-02-16 11:21 leo_23 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 链接: 编译 MacOS 版本的 RedisDesktopMmanager 最新版 编译 MacOS 版本的 RedisDesktopMmanager 最新版 下载源码📥 git clone --recursive https://github.com/uglide/RedisDesktopMan 阅读全文
posted @ 2018-02-07 19:45 leo_23 阅读(2124) 评论(0) 推荐(0) 编辑
摘要: 15 分钟用 ML 破解一个验证码系统 http://python.jobbole.com/89004/ 相关代码: http://t.cn/R8yFJiN 关于验证码识别的参考文章: https://medium.com/@ageitgey/how-to-break-a-captcha-syste 阅读全文
posted @ 2018-01-30 20:45 leo_23 阅读(231) 评论(0) 推荐(0) 编辑
摘要: mac python3 安装tensorflow出错:futures requires Python '>=2.6, <3' but the running Python is 3.5.3 对应解决链接: https://github.com/tensorflow/tensorflow/issues 阅读全文
posted @ 2018-01-30 19:54 leo_23 阅读(5754) 评论(0) 推荐(0) 编辑
摘要: 建议学习的网站 Numpy&Pandas 网站: https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/ 阅读全文
posted @ 2018-01-21 15:24 leo_23 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 解析迅雷地址为原地址,gist地址: https://gist.github.com/leo493852107/b51b8f8cd3af4594a716920f3648d58b #!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "leo" __time__ = "2018-01-12" ''' 解析迅雷地址为原地址 th... 阅读全文
posted @ 2018-01-13 17:04 leo_23 阅读(2252) 评论(0) 推荐(0) 编辑
摘要: 第一步,左键单击,选中区域: 第二步,按下快捷键“Ctrl+G”,弹出定位框,左键单击“定位条件”: 第三步,弹出“定位条件”对话框,选中“空值”,单击“确定”: 此时空值单元格被锁定: 第四步,让A3单元格=A2单元格,做好公式后“不要按回车键”: 第五步,按下“Ctrl+Enter”键,空白单元 阅读全文
posted @ 2017-12-16 21:09 leo_23 阅读(3679) 评论(0) 推荐(0) 编辑