文章分类 -  读取文件

摘要:import pickle # pickle 对象,用于爬取的json储存with open('response.pkl', 'rb') as f: content = pickle.load(f) 阅读全文
posted @ 2023-08-11 22:56 严永富 阅读(8) 评论(0) 推荐(0)
摘要:async def download_all_ts(): tasks = [] with open("second_m3u8.txt", mode="r", encoding="utf-8") as f: for line in f: # 得到每一行数据 if line.startswith("#" 阅读全文
posted @ 2023-08-03 22:31 严永富 阅读(16) 评论(0) 推荐(0)