執行 ❯
擁有你自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
def myfunc(a): return len(a) x = map(myfunc, ('apple', 'banana', 'cherry')) print(x) #convert the map into a list, for readability: print(list(x))
<map 物件,位於 0x056D44F0>
[5, 6, 6]