【发布时间】:2011-08-15 04:41:50
【问题描述】:
这是我的脚本
removed
它可以通过终端正常工作,但是当我使用 Platypus 将其设为 .app 时,我会在运行应用程序时得到这个
Hello How are you?
Traceback (most recent call last):
File "/Users/shameer/Desktop/Test Programs/questions.app/Contents/Resources/script", line 2, in <module>
feeling = raw_input()
EOFError: EOF when reading a line
【问题讨论】:
-
你知道你可以把你的问题放在 raw_input 调用中吗?例如
feeling = raw_input("Hello. How are you?") -
是的,我现在知道了,但是我写这篇文章的那天是我学习 Python 的第一天,我才 12 岁:p 这不能解决它