在 sublime text 2 中构建 python 时遇到问题(在 mac 上)

Having trouble getting python build working in sublime text 2 (on mac)

我已经为此工作了一个小时左右,只是运气不好。在我看来,它认为我正在尝试 运行 javascript 中的代码,并且当我使用 javascript 时它起作用了。我不知道为什么我的 python 构建是 运行ning javascript。我检查了文件,似乎没问题。

what I tried to run, and the output

您是否通过 Tools > Build System > Python 指定了 "Python"?

看到这个问题:How do I run Python code from Sublime Text 2?