首页 > 其他 > 详细

Exercise12 - input

时间:2019-09-27 12:25:22      阅读:106      评论:0      收藏:0      [点我收藏+]

 

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))

output

How old are you?23
How tall are you?160cm
How much do you weigh?48kg
So, youre 23 old, 160cm tall and 48kg heavy.

 

2019-09-27

15:46:47

 

Exercise12 - input

原文:https://www.cnblogs.com/petitherisson/p/11596984.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!