Python学习笔记03-if语句
2017-06-04 09:46
190 查看
cars = 'times' cars == 'times' true if cars != 'aa': print('cars') && == and | == or requested_toppings = ['mushrooms','onions','pineapple'] if 'mushrooms' in requested_toppings : true age = 19 if age >= 18: print("You are old enough to vote!") if age >= 18: print("You are old") elif age <= 19: print("You are middle") else: print("You are youny")
相关文章推荐
- python Tkinter学习笔记 简单的计算器 03
- Python学习笔记2(02-03):变量+运算符和表达式
- python数据结构学习笔记-2016-10-22-03-稀疏矩阵
- Python玩转数据分析学习笔记-03数据获取
- 03-python学习笔记:函数-调用与定义
- 《笨办法学 Python》 学习笔记03 —— Function、List、Dist
- 深度学习(DL)与卷积神经网络(CNN)学习笔记随笔-03-基于Python的LeNet之LR
- python数据结构学习笔记-2016-10-05-03-抽象数据类型(三)
- Python学习笔记 03 Python对象
- 深度学习(DL)与卷积神经网络(CNN)学习笔记随笔-03-基于Python的LeNet之LR
- Python学习笔记03 for循环和while循环
- Python3学习笔记03-基本数据类型、序列、运算及缩进和选择
- python数据结构学习笔记-2016-10-17-03-多维数组
- python数据结构学习笔记-2016-10-14-03-二维数组
- Python学习笔记03----一个环形的公路上有n个加油站,编号为0,1,2,...n-1, 每个加油站加油都有一个上限,保存在列表limit中,即limit[i]为第i个加油站加油的上限
- 深度学习(DL)与卷积神经网络(CNN)学习笔记随笔-03-基于Python的LeNet之LR
- 机器学习实战笔记(Python实现)-03-朴素贝叶斯
- Python学习笔记 03 Python对象
- Python学习笔记_03:简单操作MongoDB数据库
- 深度学习(DL)与卷积神经网络(CNN)学习笔记随笔-03-基于Python的LeNet之LR