Is there a way of zipping two lists on uneven length into one dictionary?

前端 未结 0 551
再見小時候
再見小時候 2021-02-19 05:48

I have two lists:

listA=[1,2]
listB=[\'a\',\'b\',\'c\',d\',\'e\']

And would like two zip them in a dictionary this way:

dict={1:[\         


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