Python RecursionError while using list comprehension in eval()

后端 未结 0 1950
眼角桃花
眼角桃花 2021-02-07 01:28

I have this function below:

def funcEval(self,func,nums):
    try:
        return eval(f"[({func}) for x in nums]"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题