How to convert my code that has for loops into a fully recursive function

前端 未结 0 1525
逝去的感伤
逝去的感伤 2020-11-27 14:35
def CrepeCTARR(inputUser):
listi = []
for i in inputUser:
    if type(i) is str:
        listi.append(i)
    else:
        listi.extend(CrepeCTARR(i))
return listi

         


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