……

随笔分类 -  python

拆分表中sheet
摘要:import pandas as pd # pandas==1.2.4 def process_data(filename, sheet_names, out_filename): """ 读取目标表格文件中的sheet,合并写到out_filename中 :param filename: str 阅读全文

posted @ 2021-05-24 17:54 Exlo 阅读(113) 评论(0) 推荐(0)

with与async with
摘要:with与async with 应用场景 文件的读写 数据库的读写操作 Flask的上下文管理 上下文管理协议:当使用with语句时,解释器会自动调用enter,exit class Sample: def __enter__(self): print('进入资源') return self def 阅读全文

posted @ 2021-04-21 18:00 Exlo 阅读(452) 评论(0) 推荐(0)

使用asyncio/aiohttp获取多个url并重试失败
摘要:我试图用aiohttp包编写一些异步GET请求,并解决了大部分问题,但是我想知道在处理失败(作为异常返回)时的标准方法是什么。在 到目前为止我的代码的总体思路(经过一番尝试和错误之后,我采用了here)方法: import asyncio import aiofiles import aiohttp 阅读全文

posted @ 2021-03-10 16:08 Exlo 阅读(564) 评论(0) 推荐(0)

Scrapy框架使用
摘要:scrapy框架的一些使用 阅读全文

posted @ 2020-12-19 17:07 Exlo 阅读(255) 评论(0) 推荐(0)

python站点配置相关
摘要:uwsgi, nginx,anaconda 阅读全文

posted @ 2020-11-12 18:22 Exlo 阅读(148) 评论(0) 推荐(0)

wxj的图片
摘要:吴先进要的图片 阅读全文

posted @ 2020-10-29 18:38 Exlo 阅读(102) 评论(0) 推荐(0)

Python脚本后台运行
摘要:后台运行相关系统操作 阅读全文

posted @ 2020-10-22 18:05 Exlo 阅读(2085) 评论(0) 推荐(0)

python 冒泡排序 应用
摘要:file_list是读取到的文件名,对文件名进行排序 用到了冒泡排序函数 阅读全文

posted @ 2020-10-21 14:58 Exlo 阅读(126) 评论(2) 推荐(0)

导航