python中如何将两个列表组合成字典,并存放于一个新字典中
data_list=['MC','YC','ME','YE']num_list=['1000','2000','3000','4000']我想要的效果是:[{'MC':1...
data_list = ['MC', 'YC', 'ME', 'YE']
num_list = ['1000','2000','3000','4000']
我想要的效果是:[{'MC':1000}, {'YC':2000}, {'ME':3000}, {'YE':4000}] 展开
num_list = ['1000','2000','3000','4000']
我想要的效果是:[{'MC':1000}, {'YC':2000}, {'ME':3000}, {'YE':4000}] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询