前面文章介绍的循环语句,这里开始介绍控制语句。直接看下面的demo.py例子

# 这里介绍 if语句

x = 5
y = 8
z = 4
s = 5

if x < y:
print('x is less than y')

if x < y > z:
print('x is less than y and greater than z')

if x <= s:
print('x is less than or equal to s')

最新文章

  1. 【WPF系列】基础学习-WPF架构概览
  2. Codeforces Beta Round #6 (Div. 2 Only)
  3. RDIFramework.NET ━ 9.15 个性化设置 ━ Web部分
  4. BusyBox
  5. zipline
  6. Linux下安装loadrunner步骤及遇到的问题
  7. 上传Test Result和attachment到ALM
  8. SoapUI命令行方式运行
  9. zabbix统一脚本监控方式
  10. 剑指OFFER之链表中倒数第k个节点(九度OJ1517)
  11. Date Format, 时间戳格式化
  12. python运维开发(九)----socket
  13. sqlserver 无法初始化via支持库[QLVIPL.DLL]
  14. 常见的UI框架
  15. jmeter5.1测试websocket接口
  16. JSONObject optString
  17. Docker - 参考信息
  18. 新建体(2):create or replace object创建存储包、存储过程、函数
  19. 来分析一个UVC的摄像头的枚举信息
  20. mysql执行带外键的sql文件时出现mysql ERROR 1215 (HY000): Cannot add foreign key constraint的解决

热门文章

  1. IOS 多线程-NSThread 和线程状态
  2. POJ-2503 Babelfish---map或者hash
  3. 一步步做程序优化-讲一个用于OpenACC优化的程序(转载)
  4. elsevier期刊要求翻译
  5. IE 8 下小心使用console.log()
  6. 1801: [Ahoi2009]chess 中国象棋
  7. 前端之HTML和CSS
  8. js函数的默认参数
  9. 交换机基础配置之stp生成树实验
  10. django中的分页管理