def judgment_module(judgement_input,value,Judgement): for judgement_input_key, judgement_input_value in judgement_input.items(): globals()[judgement_input_key] = judgement_input_value if eval(value): return Judgement["if_true_next"] else: return Judgement["if_false_next"]