Removing Items From List while iterating with For loop

后端 未结 0 1318
时光取名叫无心
时光取名叫无心 2020-11-28 06:48

I recently ran into this:

my_list = [\'wow\', \'nice_one\', \'Now!\', \'Now!\', \'Now!\', \'Now!\', \'Now!\']
for x in my_list:
    if x == "Now!":
         


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