这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。
name = 'Greensprin'
age = 20 #it's a lie
height = 162 #cm
weight = 'it is a secret'
eyes = 'brown'
teeth = 'White'
hair = 'Black'
print "Let's talk about %s." % name
print "She's %d cm tall." % height
if weight.isdigit()!=1:
print "she don't want tall us hers weight!"
print "She is got %s eyes and %s hair." % (eyes, hair)
print "She has %s teeth." % teeth
print "If I add %d, %d,I get %d." % (
age, height, age + height)