執行 ❯
擁有你自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
def myfunc(a, b): return a + b x = map(myfunc, ('apple', 'banana', 'cherry'), ('orange', 'lemon', 'pineapple')) print(x) #convert the map into a list, for readability: print(list(x))
<map object at 0x034244F0>
['appleorange', 'bananalemon', 'cherrypineapple']