^_^内容原创,禁止转载 假设配置如下: local reward_pool = { {weight = , item = {, num = }}, {weight = , item = {, num = }}, {weight = , item = {, num = }}, {weight = , item = {, num = }}, {weight = , item = {, num = }}, {weight = , item = {, num = }}, } 1.顺序查找,预处理时间…