#获取鉴权结果 def get_auth_result(userid,entrance_from): product = "gamehallphone" if entrance_from == "wy": product = "wymonthhall" ret = game_enable(product,userid) return ret def get_auth_allproduct(request): entrance_froms = ["hy","wy"] return map(lambda x:get_auth_result(request.session["userid"],x),entrance_froms)
lambda 和 map()应用
最新推荐文章于 2022-03-08 21:52:55 发布