- map python built-in functions
When I use the map functions, there is a noteworthy detail.
data = ['1','2','3','4']
def fx(i):
print(i)
map(fx,data)
Originally I thought it would output a '1', '2', '3', '4', but the results did not.
But when I joined the list, in front of the map function List (map (fx, the Data)) , then output the results.