摘要: def merge(lists): list.sort(key=lamba x: x[0]) merges = [] for l in list: if not merges or l[0] > merges[-1][1] merges.append(l) else: merges[-1][1] = 阅读全文
posted @ 2024-02-28 20:01 干炸小黄鱼 阅读(6) 评论(0) 推荐(0) 编辑
摘要: import time class LocalStrategy: def execute(self): print("this is a local 104 execute") class SaasStrategy: def execute(self): print("this is a saas 阅读全文
posted @ 2024-02-28 19:57 干炸小黄鱼 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import time class Observer: def __init__(self, name) -> None: self.name = name def update(self, message): print("name %s received message: %s" % (self 阅读全文
posted @ 2024-02-28 19:57 干炸小黄鱼 阅读(1) 评论(0) 推荐(0) 编辑