# ret = zip((('a'),('b')),(('c'),('d')))
# for i in ret:
# print(i)
# def func(tup):
# return {tup[0]:tup[1]}
# res = map(func,ret)
# print(list(res))
ret = zip((('a'),('b')),(('c'),('d')))
ret = map(lambda t:{t[0]:t[1]},ret)
print(list(ret))
posted on
2019-03-13 22:49开心小耀子
阅读(121)
评论(0)
编辑收藏举报