欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

笨办法学python 习题12:提示别人

程序员文章站 2022-03-16 11:22:39
...

继续熟悉输入

练习

#不用print了,用input进行输入提示
y = input("Name? ")
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))

打印结果

笨办法学python 习题12:提示别人

pydoc用法

笨办法学python 习题12:提示别人

相关标签: python 学习