摘要: 秒杀方法 def sell(product_id: str): with r.pipeline() as pipe: # 初始化 pipe while True: try: pipe.watch(product_id) # 监听库存 c = int(pipe.get(product_id)) # 查 阅读全文
posted @ 2022-10-18 18:00 一文g 阅读(51) 评论(0) 推荐(0) 编辑