我正在尝试使用atom-runner for atom 运行 python 代码,但它返回 EOF 错误。我做了类似问题的其他答案所说的事情,并使用 raw_input() 而不是 input(),但它仍然返回和 EOF 错误。
这是我的代码:
tempf = int(raw_input("What is the temperature in fahrenheit? "))
tempc = (tempf - 32) * 5 / 9
print("The temperature in celsius is", tempc, "degrees.")
这是错误:
What is the temperature in fahrenheit?
Traceback (most recent call last):
File "C:\Documents\Programming\Python\f2c.py", line 1, in <module>
tempf = int(raw_input("What is the temperature in fahrenheit? "))
EOFError: EOF when reading a line