python标准输入:raw_input
1 2 3 4 5 6 7 8 9 10 |
''' Created on Apr 12, 2016 @author: zhiming ''' user = raw_input('please input your name:\n') print user |
我们可以通过内置的help方法来查看
>>> help(raw_input)
1 2 3 4 5 6 7 8 9 10 |
Help on built-in function raw_input in module __builtin__: raw_input(...) raw_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. (END) |
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021