The Python interpreter can get its input from a number of sources: from a script passed to it as standard input or as program argument, typed in interactively, from a module source file, etc. This chapter gives the syntax used in these cases.
Python解释器可以从几种来源得到输入:从作为标准输入或作为程序参数传入的脚本,交互方式下的输入,从模块源文件,等等。本章给出在这些情况下使用的语法。