def ctof(x):#定义一个函数 a = 32 + x * 9 / 5 return int(a) for x in range(-100, 151, 5): print("c={0}->f={1}".format(x, ctof(x)))
def ctof(x):#定义一个函数 a = 32 + x * 9 / 5 return int(a) for x in range(-100, 151, 5): print("c={0}->f={1}".format(x, ctof(x)))#科学技术法输出