如何从天气api打印Python中削减除温度以外的所有内容

2024-06-17 18:57:16 发布

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

我将如何削减这一产出:

w = obs.get_weather()
w.get_temperature()                                # Get temperature in Kelvin

#output{'temp': 293.4, 'temp_kf': None, 'temp_max': 297.5, 'temp_min': 290.9}

为此:

293.4

Tags: innoneoutputgetmintempmaxweather