上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 50 下一页
摘要: 如下: 阅读全文
posted @ 2022-08-31 14:16 tslam 阅读(22) 评论(0) 推荐(0)
摘要: 转载于 https://blog.csdn.net/leedcandd/article/details/119920350 阅读全文
posted @ 2022-08-31 10:51 tslam 阅读(75) 评论(0) 推荐(0)
摘要: 转载自: https://blog.csdn.net/qq_40202812/article/details/83410023 1 2 阅读全文
posted @ 2022-08-29 11:21 tslam 阅读(55) 评论(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 阅读(252) 评论(0) 推荐(0)
摘要: 0-1 睡几秒? 情况1: 批量插入时, 每次插入100条, 睡time.sleep(1); 情况2: 单条单条插入时, 每插入一条睡0.05秒; 其他: 批量requests请求时, 单次请求完了睡1sec, 否则, 不是你的IP被封了,就是给人家服务器造成冲击. 为什么呢? 因为mysql同一时 阅读全文
posted @ 2022-08-26 09:55 tslam 阅读(183) 评论(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 阅读(31) 评论(0) 推荐(0)
摘要: 注释越多越好 但是: 不要写解释这句代码啥意思的具体备注 而是: 要写你要做什么写成备注 阅读全文
posted @ 2022-08-24 23:24 tslam 阅读(15) 评论(0) 推荐(0)
摘要: 参考链接: https://www.runoob.com/python/python-func-locals.html 以字典类型返回当前位置的全部局部变量. 阅读全文
posted @ 2022-08-24 10:57 tslam 阅读(14) 评论(0) 推荐(0)
摘要: 如题 阅读全文
posted @ 2022-08-24 09:48 tslam 阅读(20) 评论(0) 推荐(0)
摘要: 官方文档: https://docs.python.org/zh-cn/3/library/ 阅读全文
posted @ 2022-08-23 23:22 tslam 阅读(9) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 50 下一页