随笔分类 -  python

摘要:pymsql往数据库插入表情报错 阅读全文
posted @ 2022-01-14 15:33 BrianSun 阅读(72) 评论(0) 推荐(0)
摘要:### 前言 众里寻他千百度,蓦然回首,那人却在灯火阑珊处。 最近要测试一个python2环境的代码,其中用到了MySQLdb, 查询网络,发现要安装mysql-python,于是就进行了一番艰难的探索,现在汇总记录一下,希望能过够为大家提供些许帮助。 ### 解决方案 本方案前提默认已经安装配置好 阅读全文
posted @ 2021-12-22 11:26 BrianSun 阅读(558) 评论(0) 推荐(0)
摘要:ubuntu 同时安装python2 和 python3 版本的 gunicorn 阅读全文
posted @ 2021-12-21 13:26 BrianSun 阅读(802) 评论(0) 推荐(0)
摘要:转: fastapi https 配置 阅读全文
posted @ 2021-12-08 15:01 BrianSun 阅读(2418) 评论(0) 推荐(0)
摘要:python3求取大文件sha1值和md5 阅读全文
posted @ 2021-11-04 14:51 BrianSun 阅读(876) 评论(0) 推荐(0)
摘要:详见 https://docs.python.org/zh-cn/3/library/struct.html#struct.pack 阅读全文
posted @ 2021-09-18 11:17 BrianSun 阅读(55) 评论(0) 推荐(0)
摘要:python实用总结 阅读全文
posted @ 2021-06-09 09:01 BrianSun 阅读(186) 评论(0) 推荐(0)
摘要:#ubuntu16.04 python2&3 pip升级后报错: #sys.stderr.write(f"ERROR: {exc}") *** ##描述 最近使用ubuntu16.04上的pip时提示升级,升级后报错: ``` Traceback (most recent call last): F 阅读全文
posted @ 2021-03-17 15:08 BrianSun 阅读(12195) 评论(2) 推荐(3)
摘要:pyinstaller适应python2和python3环境 阅读全文
posted @ 2021-02-20 18:23 BrianSun 阅读(1146) 评论(0) 推荐(0)
摘要:使用pip安装完需要的python库,运行脚本时报错:Syntax Error: Non-ASCII character '\xc3' in file /usr/local/lib/python2.7/dist-packages/rsa/key.py on line 1, but no encoding decleared; 阅读全文
posted @ 2020-09-01 11:23 BrianSun 阅读(1566) 评论(0) 推荐(0)
摘要:rsa-oaep 阅读全文
posted @ 2020-08-25 13:07 BrianSun 阅读(2331) 评论(0) 推荐(0)
摘要:rsa简单加密 阅读全文
posted @ 2020-08-25 12:29 BrianSun 阅读(515) 评论(0) 推荐(0)
摘要:python3 使用subprocess.Popen()捕获标准输出 阅读全文
posted @ 2020-08-18 18:40 BrianSun 阅读(3782) 评论(0) 推荐(0)
摘要:linux下pyinstaller将python打包为linux可执行文件 阅读全文
posted @ 2020-07-24 01:13 BrianSun 阅读(6093) 评论(0) 推荐(0)
摘要:python pip 设置国内镜像源 阅读全文
posted @ 2020-07-12 03:26 BrianSun 阅读(654) 评论(0) 推荐(0)