运行 ❯
拥有你自己的 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]