lambda arguments unpack error

后端 未结 6 1857
名媛妹妹
名媛妹妹 2020-11-30 09:40

In Python 2 this code is OK:

f = lambda (m, k): m + k

m = [1,2,3,4]
k = [5,6,7,8]

print(map(f, zip(m, k)))

but in Python 3 the following

6条回答
提交回复
热议问题