首页 > 编程语言 >【笨方法学python】ex12 - 提升别人

【笨方法学python】ex12 - 提升别人

时间:2022-10-05 04:11:05浏览次数:51  
标签:old weight raw python ex12 height How input 方法学

代码如下:

点击查看代码
# -*-coding:utf-8- -*-
# 提示别人

age = raw_input("How old are you?")
height = raw_input("How tall are you?")
weight = raw_input("How much do you weigh?")

print "So, you're %r old, %r tall and %r heavy." % (
	age, height, weight)

print "So, you're %s old, %s tall and %s heavy." % (
	age, height, weight)

执行结果:
image

标签:old,weight,raw,python,ex12,height,How,input,方法学
From: https://www.cnblogs.com/TiramisuPS/p/16754972.html

相关文章