小白求助
def temp_conversio(c):f = c * 1.8 + 32
return f
c = float(input("请输入摄氏度:")
代码再次报错,检查了两遍没找到哪错了,请求各路大神帮忙{:10_266:}{:10_266:}{:10_254:}
f = temp_conversiom(c)
print("转换成华氏度是:" + str(f))
temp = input("转换完毕。再见。按7退出")
guess = int(temp)
if guess == 7:
print("掰掰")
不仅单词拼错,而且第 6 行少右括号 代码帮你改好了:
def temp_conversio(c):
f = c * 1.8 + 32
return f
c = float(input("请输入摄氏度:"))
f = temp_conversio(c)
print("转换成华氏度是:" + str(f))
temp = input("转换完毕。再见。按7退出")
guess = int(temp)
if guess == 7:
print("掰掰")
页:
[1]