程序交互:输入、输出
用法一:input()
# -- coding: utf-8 --
print("How old are you?")
age = input()
print("How tall are you?")
height = input()
print("How much do you weight?")
weight = input()
print("So, you're %r old, %r tall and %r heavy." %(age, height, weight))
用法二:input("提示信息 tips")
# -- coding: utf-8 --
age = input("How old are you?")
height = input("How tall are you?")
weight = input("How much do you weight?")
print("So, you're %r old, %r tall and %r heavy." % (age, height, weight))
号外:pydoc ——> https://www.cnblogs.com/fw-qql/p/10906056.html