1
我正在使用Zed Shaw's 瞭解Python的艱辛之路。Python EOF錯誤raw_input()
在練習11,碼上線2產生EOF
錯誤下面是代碼:
1 print "How old are you?",
2 age = raw_input()
3 print "How tall are you?",
4 height = raw_input()
5 print "How much do you weigh?",
6 weight = raw_input()
7 print "So, you're %r old, %r tall and %r heavy." % (
age, height, weight)
我已搜查StackOverflow上,谷歌和黑客新聞論壇。我找不到任何答案(a)解決了這個問題,(b)我能理解。
我在ideone.com上使用python編譯器(也嘗試了兩種其他在線編譯器,都沒有工作)。 (請閱讀但不能應用:Python EOF Error in raw_input())。
是的,在線翻譯幾乎沒有爲這種事情工作。你爲什麼不下載IDE? –
謝謝亞歷克斯,會這樣做! 我喜歡在任何地方輕鬆訪問編譯器中代碼的想法。 猜猜我可以使用Dropbox等。 – koopertrooper