![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python
文章平均质量分 50
Python
shadyyy
报错的日常
展开
-
python虚拟环境的搭建(centos)
安装virtualenv、virtualenvwrapperpip install virtualenvpip install virtualenvwrapper原创 2023-03-24 17:36:25 · 702 阅读 · 0 评论 -
[python] str、bytes、BytesIO、Image的相互转换
byte_data = base64.b64decode(string) ...原创 2023-02-09 15:51:20 · 1424 阅读 · 0 评论 -
pymysql, pandas, sqlalchemy 性能对比
根据上篇文章可以得出sqlalchemy 中core 模式批量插入性能明显提高本篇文章介绍python中多种插入方式。原创 2022-09-20 10:48:00 · 2169 阅读 · 0 评论 -
asyncio和aiohttp的用法
asyncio aiohttp原创 2022-08-17 17:13:29 · 793 阅读 · 0 评论 -
SQLAlchemy core和orm批量插入对比
因为服务器太烂, 插入数据有时非常慢, 所以想在性能上做些优化查阅网上多篇资料文章, 发现core模式比较快。原创 2022-08-15 17:28:48 · 370 阅读 · 0 评论 -
替代imread函数, 直接读取字节
imread只能读取本地文件有时候我们不想把图片存下来再读取,很麻烦如果能将请求下来的base64或字节直接读取。原创 2022-07-27 17:17:55 · 620 阅读 · 0 评论 -
用python提取pdf表格
一. camelot能够直接将大部分表格转换为 Pandas 的 Dataframepip install camelot-py[cv]import camelotdata = pd.DataFrame()file = '111.pdf'#指定页数for page in range(1,3): table = camelot.read_pdf(file,pages=str(page)) data = data.append(table[0].df, ignore_index=T原创 2020-09-23 15:06:18 · 308 阅读 · 0 评论