**结束。**此问题需要详细的调试信息。它目前不接受答案。
**想改进这个问题吗?**更新问题,使其成为堆栈溢出的主题。
12小时前关门了。
改进这个问题
我不知道如何修复此错误:
Traceback (most recent call last):
File "trolyao.py", line 41, in <module>
temper= weather.temperature('temp')['celcius']
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python38\lib\site-packages\pyowm\weatherapi25\weather.py", line 224, in temperature
converted = measurables.kelvin_dict_to(to_be_converted, unit)
File "C:\Users\ASUS\AppData\Local\Programs\Python\Python38\lib\site-packages\pyowm\utils\measurables.py", line 47, in kelvin_dict_to
raise ValueError("Invalid value for target temperature conversion \
ValueError: Invalid value for target temperature conversion unit
此处输入代码
1条答案
按热度按时间yxyvkwin1#
我想你把“摄氏度”拼错了。