摘要: # 来源:https://blog.csdn.net/YZL40514131/article/details/127170427 from pymysql import * class MysqlHelper: # todo 数据库连接参数,可以定义多个,比如conn_params1,conn_pa 阅读全文
posted @ 2024-09-05 17:13 愿风带走思绪 阅读(20) 评论(0) 推荐(0)
摘要: import requests import time class StateCodeError(Exception): """状态码异常""" pass class ContentError(Exception): """内容异常""" pass class RequestHelper: """未 阅读全文
posted @ 2024-09-05 17:10 愿风带走思绪 阅读(18) 评论(0) 推荐(0)
摘要: # 如果名中存在 \ / : * ? " < > | 中的一个字符,则替换为:(中文冒号) name = '第二十章\t剧中罪案:教训' illegal_chars = ['\\', '/', ':', '*', '?', '"', '<', '>', '|', '\t'] for char in 阅读全文
posted @ 2024-09-05 10:03 愿风带走思绪 阅读(26) 评论(0) 推荐(0)