W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_map_2.py:
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))