赞
踩
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.
私以为input接受的所有参数都是以字符串的形式保存的。
print("How old are you?",end='')
age=input()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。