吾生也有涯,而知也无涯。

导航

4.input()

>>> help(input)
Help on built-in function input in module builtins:

input(prompt=None, /)
Read a string from standard input. The trailing newline is stripped.

The prompt string, if given, is printed to standard output without a
trailing newline before reading input.

If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
On *nix systems, readline is used if available.

  

posted on 2018-11-27 09:56  JesseChang  阅读(166)  评论(0编辑  收藏  举报