Python中的Map函数错误

2024-10-01 07:38:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着运行以下代码。你知道吗

def fahrenheit(T):
    return (9.0/5)*T + 32

temp = [2 , 43 , 54 , 67 , 78 , 89.9]

map(fahrenheit,temp)

为什么地图功能会打印

<map at 0x15a6cf17550>

Tags: 代码mapreturndeftempatfahrenheit地图功能