#Programme to covert Farenheight to Celcius
F=input("Enter Value:")
F=((F-32)/9)*5
print("The temperature is ",F,"Degrees Celcius")
当我尝试运行它时,它显示 TypeError: unsupported operand type(s) for -: 'str' and 'int'
将您的输入类型转换为 int
F=int(input("Enter Value:"))
并迫使该师归还浮点数。
将其添加到最顶部
from __future__ import division
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)