age = input("How old are you? ")
height = input("How tall are you? ")
weight = input("How much do you weigh? ")
print ("So, you're %r old, %r tall and %r heavy." % (age, height, weight))
###### result
C:\Users\Administrator\Desktop\projects\test>ex12.py
How old are you? 25
How tall are you? 25
How much do you weigh? 25
So, you're '25' old, '25' tall and '25' heavy.
C:\Users\Administrator\Desktop\projects\test>
1. 在命令行界面下运行你的程序,然后在命令行输入 pydoc input 看它说了些什么。
如 果你用的是 Window,那就试一下 python -m pydoc input 。
2. 输入 q 退出 pydoc。
3. 上网找一下 pydoc 命令是用来做什么的。
4. 使用 pydoc 再看一下 open, file, os, 和 sys 的含义。看不懂没关系,只要通读一下,记下 你觉得有意思的点就行了