1 Star 0 Fork 0

赵子豪/The-Hard-Way-To-Learn-Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ex5.py 548 Bytes
一键复制 编辑 原始数据 按行查看 历史
赵子豪 提交于 2017-05-01 08:51 . Rename ep5.py to ex5.py
# -*- coding: utf-8 -*-
name = 'zhao zihao'
age = 21 # not a lie
height = 182 # cm
weight = 90 # kg
eyes = 'black'
teeth = 'write'
hair = 'black'
print "Let's talk about %s." % age
print "He's %d cm tall." % height
print "He's %d kg heavy." % weight
print "Actually that's not too heavy."
print "He's got %r eyes and %s hair." % (eyes, hair)
print "His teeth are usually %s depedng on the coffee." % teeth
# this line is tricky, try to get it exactly right
print "If I add %d, %d, and %d I get %r." % (age, height, weight, age + height + weight)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zhao_zihao/The-Hard-Way-To-Learn-Python.git
git@gitee.com:zhao_zihao/The-Hard-Way-To-Learn-Python.git
zhao_zihao
The-Hard-Way-To-Learn-Python
The-Hard-Way-To-Learn-Python
master

搜索帮助