Python mistakenly thinks that it has to thake its input from stdin/pipe instead of running interactive.
python runs if you specify "-i" explicit.
I guess that it has something to do with the terminal name that rxvt sets,
so that an app doesn't know that its a console window.
run python scripts in an rxvt window
本文讨论了Python在某些情况下错误地尝试从标准输入读取输入而不是进入交互模式的问题。作者推测这可能与终端名称有关,导致应用程序无法识别它实际上运行在一个控制台窗口中。

被折叠的 条评论
为什么被折叠?



