发布时间:2017-11-09 13:25:21编辑:Run阅读(5632)
练习代码如下
# coding: utf-8
__author__ = 'www.py3study.com'
age = input(u"How old are you ?")
height = input(u"How tall are you ?")
weight = input(u"How much do you weight ?")
print("So, you're {} old, {} tall and {} heavy.".format(age, height, weight))
应该看到的结果
How old are you ?18
How tall are you ?180
How much do you weight ?130
So, you're 18 old, 180 tall and 130 heavy.
上一篇: 习题11:提问
下一篇: 习题13:参数,解包,变量
 51244
 50682
 41282
 38103
 32566
 29467
 28329
 23192
 23155
 21483
 1558°
 2278°
 1886°
 1825°
 2137°
 1872°
 2558°
 4290°
 4147°
 2955°