【发布时间】:2012-10-19 11:11:46
【问题描述】:
在我的 mac 上使用 sublime text:
# farenhiet to celcius
def farenheit2celcious (farenheit):
celcius = (5 / 9) * (farenheit - 32)
return celcius
#test
c1 = farenheit2celcious(32)
print c1
在控制台中给出 0
在 Windows 中,在崇高的文本中,我得到了
打印 c1 ^ SyntaxError:无效的语法 [0.1s 完成,退出码 1]
有什么想法吗?行尾?文件是不同计算机从 Dropbox 访问的相同文件。两种环境都有 sublime text 2,可能安装了不同的包
【问题讨论】:
标签: python sublimetext