https://api.vvhan.com/api/avatar/boy

技术博客分享

2014-04-19-Python输入输出详解

Python输入输出详解

http://

Python基本输入输出教程

python内置输入函数

python2输入

raw_input()

python3输入

先在交互式解释器中查看input函数

input(…)

input([prompt]) -> string

Read a string from standard input.  The trailing newline is stripped.

If the user hits EOF (Unix: Ctl-D, Windows: Ctl-Z+Return), raise EOFError.  On Unix, GNU readline is used if enabled.  The prompt string, if given,  is printed without a trailing newline before reading.