快速创建一个列表,简洁了代码。 先遍历(for),再判断,判断完后符合的放入列表
2468
robot_queues = {webhook: queue.Queue() for webhook in robot_webhooks} 结构就像: {键: 值 for 每一项 in 列表}
robot_queues = {webhook: queue.Queue() for webhook in robot_webhooks}