上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 45 下一页
摘要: 转载自: https://blog.csdn.net/weixin_41951954/article/details/124838931 代码 import json class BytesEncoder(json.JSONEncoder): def default(self, obj): if i 阅读全文
posted @ 2022-08-31 18:41 tslam 阅读(1248) 评论(0) 推荐(0) 编辑
摘要: json.dumps(a, ensure_ascii=False) #带上ensure_ascii=False这个参数 阅读全文
posted @ 2022-08-31 18:16 tslam 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 如下图: 阅读全文
posted @ 2022-08-31 14:37 tslam 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 如下: 阅读全文
posted @ 2022-08-31 14:16 tslam 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 转载于 https://blog.csdn.net/leedcandd/article/details/119920350 阅读全文
posted @ 2022-08-31 10:51 tslam 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 转载自: https://blog.csdn.net/qq_40202812/article/details/83410023 1 2 阅读全文
posted @ 2022-08-29 11:21 tslam 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 参考1 https://blog.csdn.net/weixin_44151034/article/details/124286429 参考 2 参考代码 def is_diff_ele(list1, list2): """ 判断两个列表元素是否一致(不是两个列表是否相同) True: 一致; Fa 阅读全文
posted @ 2022-08-26 18:17 tslam 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 0-1 睡几秒? 情况1: 批量插入时, 每次插入100条, 睡time.sleep(1); 情况2: 单条单条插入时, 每插入一条睡0.05秒; 其他: 批量requests请求时, 单次请求完了睡1sec, 否则, 不是你的IP被封了,就是给人家服务器造成冲击. 为什么呢? 因为mysql同一时 阅读全文
posted @ 2022-08-26 09:55 tslam 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 官网地址: https://docs.djangoproject.com/zh-hans/3.1/topics/db/transactions/#controlling-transactions-explicitly 图1 根据上下文管理器, with 结束后会 调用 _ _exit_ _, 进入w 阅读全文
posted @ 2022-08-24 23:45 tslam 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 注释越多越好 但是: 不要写解释这句代码啥意思的具体备注 而是: 要写你要做什么写成备注 阅读全文
posted @ 2022-08-24 23:24 tslam 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 45 下一页