Python Lists how to merge two or more comprehensions?

前端 未结 0 2031
忘掉有多难
忘掉有多难 2021-01-03 21:21
FirstList = [10, 20, 23, 11, 17]
SecondList = [13, 43, 24, 36, 12]

thirdlist = [num for num in FirstList if num%2==1]
thirdlist.extend([num for num in SecondList if         


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