第十五章 模块-模块中函数的正确运用方法

模块中函数的正确运用方法-在python中指定在其他模块中定义的函数时必须更加具体。解决这个问题的一种方法是把这一行代码 :fahrenheit = c_to_f(celsius)  改为:fahrenheit = my_module.c_to_f(celsius) 否则会报错。 错误: import my_module celsius = float(raw_input("Enter a tem
相关文章
相关标签/搜索