标签:list map div pytho return lam 习题 匿名 int
# 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))
标签:list map div pytho return lam 习题 匿名 int
原文地址:https://www.cnblogs.com/kaiyuan111/p/10527273.html