There are two forms of expression input. Both ignore leading whitespace. The string argument to eval() must have the following form:
有两种表达式输入形式。两种都忽略掉前导空白。对eval()的字符串参数必须有以下形式:
eval_input |
::= | expression_list NEWLINE* |
The input line read by input() must have the following form:
通过input()读入的输入行必须有以下形式:
input_input |
::= | expression_list NEWLINE |
Note: to read `raw' input line without interpretation, you can use the built-in function raw_input() or the readline() method of file objects.
注意:想要读出未经处理的`原始'输入行,你可以使用内置函数raw_input()或file对象的readline()方法。