Python add list items with condition

后端 未结 0 1432
名媛妹妹
名媛妹妹 2021-01-11 11:28

I have a scenario like this:

main = [200,300,400,500]
sec = [0,0,1,0]
new = []

The condition is,

  1. if element in the second list i
相关标签:
回答
  • 消灭零回复
提交回复
热议问题