擅长:python、mysql、java
<p>因为OP要求<code>map()</code>,这里先生,是使用它的解决方案,并且只使用它(不需要导入额外的库):</p>
<pre><code>result = map(lambda x: [x['title'],x["firstname"],x["lastname"]],employees)
print(*["{} {} {}\n".format(a,b,c) for a,b,c in result], sep="")
Output:
Mr Jonathan Calderon
Mr Christopher Hansen
Mrs Isabella Dorsey
Ms Barbara Baker
</code></pre>