酷代码 AI
菜单
全部AI  /  热门  /  AI写代码神器
服务商

python根据下面将摄氏温度转换为华氏温度的公式,在指定的位置编写程序,计算华氏温度值:f= 5 9 ​ c+32。for temperature in [-271, -100, 0, 100, 1000]:

```python for temperature in [-271, -100, 0, 100, 1000]: f = (5/9) * temperature + 32 print(f"摄氏温度 {temperature} 对应的华氏温度为: {f}") ``` [2024-11-14 22:18:39 | AI写代码神器 | 68点数解答]

相关提问