ex11
1 # -*-coding:utf-8 -*- 2 print ("how old are you?"), 3 age = input() # python 3.0版本开始已经去掉了raw_input函数,直接用input函数就可以了 4 print ("how tall are you?"), 5 height = int(float(input())) #假如输入的是小数点需要加入float()函数就可以了 6 print ("how much do you weigh?"), 7 weight = int(input()) 8 9 print ("so, you're %r old, %r tall and %r heavy." % ( 10 age, height, weight))