1 Star 0 Fork 0

lhjlzf / Learn Python The Hard Way Note

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ex5.py 593 Bytes
一键复制 编辑 原始数据 按行查看 历史
# _*_ coding: utf-8 _*_
name = 'Zed A. Shaw'
age = 35 # not a lie
height = 74 # inches
weight = 180 # lbs
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print ("Let's talk about %r." % name)
print ("He's %d inches tall." % height)
print ("He's %d pounds heavy." % weight)
print ("Actually that's not too heavy.")
print ("He's got %s eyes and %s hair." % (eyes,hair))
print ("His teeth are usually %r depending on the coffee." % teeth)
# this line is tricky, try to get it exactly right
print ("If I add %d, %d, and %d I get %d." % (
age, height, weight, age + height + weight))
Python
1
https://gitee.com/lhjzf/Learn-Python-The-Hard-Way-Note.git
git@gitee.com:lhjzf/Learn-Python-The-Hard-Way-Note.git
lhjzf
Learn-Python-The-Hard-Way-Note
Learn Python The Hard Way Note
master

搜索帮助