一个完全愚蠢的问题 [英] A completely silly question
问题描述
这一定是有史以来最愚蠢的问题:
Python中的用户输入怎么样? (比如stdin)
哪里可以找到它?我在文档中找不到任何引用。
Amir
This must be the silliest question ever:
What about user input in Python? (like stdin)
Where can I find it? I can''t find any references to it in the documentation.
Amir
推荐答案
周五2004年12月17日16:40,Amir Dekel写道:
On Friday 17 December 2004 16:40, Amir Dekel wrote:
这一定是有史以来最愚蠢的问题:
Python中的用户输入怎么样? (像stdin)
我在哪里可以找到它?我在
文档中找不到任何引用。
This must be the silliest question ever:
What about user input in Python? (like stdin)
Where can I find it? I can''t find any references to it in the
documentation.
参见sys.stdin
干杯,
Frans
See sys.stdin
Cheers,
Frans
Amir Dekel写道:
Amir Dekel wrote:
这一定是有史以来最愚蠢的问题:
Python中的用户输入怎么样? (像stdin)
我在哪里可以找到它?我在
文档中找不到任何引用。
Amir
This must be the silliest question ever:
What about user input in Python? (like stdin)
Where can I find it? I can''t find any references to it in the
documentation.
Amir
简单,简单,简单:
Var = raw_input(这里有一些提示文字:)
-
Harlin Seritt
Simple, Simple, Simple:
Var = raw_input("Some prompting text here: ")
--
Harlin Seritt
Harlin Seritt写道:
Harlin Seritt wrote:
简单,简单,简单:
Var = raw_input("一些提示文字在这里:)
Frans Englich写道:
请参阅sys.stdin
Simple, Simple, Simple:
Var = raw_input("Some prompting text here: ")
Frans Englich wrote:
See sys.stdin
我是什么从程序中需要的是等待单个字符输入,然后在C中使用
之类的东西(getchar())。所有这些Python模块都不需要
赚多少钱从我这里来......
Amir
What I need from the program is to wait for a single character input,
something like while(getchar()) in C. All those Python modules don''t
make much sence to me...
Amir
这篇关于一个完全愚蠢的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!