1 Star 0 Fork 0

lhjlzf / Learn Python The Hard Way Note

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ex30.py 504 Bytes
一键复制 编辑 原始数据 按行查看 历史
lhjlzf 提交于 2018-04-03 20:25 . modify
# _*_ coding: utf-8 _*_
people = 30
cars = 40
buses = 15
if cars > people:
print("We should take the cars.")
elif cars < people:
print("We should not take the cars.")
else:
print("We can't decide.")
if buses < cars:
print("That's too many buses.")
elif buses < cars:
print("Maybe we could take the buses.")
else:
print("We still can't decide.")
if people > buses:
print("Alright, let's just take the buses")
else:
print("Fine, let's stay home then.")
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

搜索帮助