摘要: l=[{'a':45},{"b":34}]c=0for i in l: i['a']=c*100 c+=1 * 翻译 搜索 复制 阅读全文
posted @ 2024-05-23 20:16 papering 阅读(3) 评论(0) 推荐(0) 编辑
摘要: class Test: def __init__(self, totals, uniques, pre): self.totals = totals self.uniques = uniques self.cumulative_sum = totals if pre: self.cumulative 阅读全文
posted @ 2024-05-23 18:38 papering 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 分布式任务调度内的 MySQL 分页查询优化 https://mp.weixin.qq.com/s/VhSzxYIRv83T3D3JD4cORg 三、优化方案 3.1 优化方案确定 当前SQL执行计划以主键进行顺序遍历,是一个范围扫描,有点像在一片很大的居民区按照序号挨家挨户寻找一些特定的人一样,比 阅读全文
posted @ 2024-05-23 10:04 papering 阅读(2) 评论(0) 推荐(0) 编辑