How to find strings with matched letters in list/array using lambda function?

后端 未结 1 1475
北荒
北荒 2021-01-26 02:36

I am using lambda function, python 3.6 and Mongodb atlas. In mongodb i have one collection below like this. collection name profile. below as the collection structure.



        
1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-26 03:26

    Follow the below code:

     ch2 = [document["channel"] for document in ch]
     new_list = []
    
     for word in ch2[0]:
        print(word)
        if(re.findall(name, word)):
            new_list.append(word)
    
      return new_list
    

    the issue has been resolved

    0 讨论(0)
提交回复
热议问题