TypeError: argument of type 'NoneType' is not iterable when trying to remove elements from a list

后端 未结 0 533
慢半拍i
慢半拍i 2021-02-10 02:45

I am trying to remove elements from a list where the substring is in the list. I have tried the following code:

for string in list(data):
   if \'sub\' in string         


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