num += 1 等价于 num = num + 1

逻辑运算符

and   全true则true

条件1 and 条件2

5>3 and 3>2   ===> true

5>3 and 3<2   ===>false

or  有true则true

5>3 or 6<2   ===>true

not 取反

not 5>3 ===>false

not 5<3 ===>true

a>b and c>d or not f

判断优先级:最好加括号

not > and > or

最新文章

  1. Javascript格式化json返回的时间(/Date(1482747413000)/)
  2. PHP 流程管理
  3. JS-数组冒泡排序
  4. iOS界面传值的方式(7种)
  5. BootStrap学习------栅格
  6. 安装pyspider
  7. 【WPF】WPF中调用Winform
  8. MogileFS 的介绍(MogileFS 系列1)[分布式文件系统]
  9. PHP json_decode object时报错Cannot use object of type stdClass as array
  10. ASP.NET取得Request URL的各个部分
  11. Android学习之SQLite学习
  12. javascript每日一练(三)——DOM一
  13. id为194024的进程当前未运行
  14. mybatis源码解读(四)——事务的配置
  15. docker安装mysql5.7
  16. POJ 2594 Treasure Exploration (Floyd+最小路径覆盖)
  17. js 浏览器页面切换事件
  18. Springboot学习01- 配置文件加载优先顺序和本地配置加载
  19. leveldb源码阅读
  20. 判定 java 对象死亡的过程

热门文章

  1. COGS 2104. [NOIP2015]神奇的幻方
  2. springmvc 的原理分析
  3. Array - Remove Element
  4. OO作业第三单元总结
  5. vue跨域处理(vue项目中baseUrl设置问题)
  6. Bootstrap 徽章(Badges)
  7. cocos2dx 通过jni调用安卓底层方法
  8. 转 Hystrix入门指南 Introduction
  9. CentOS7.2 虚拟机网卡无法启动
  10. python-for循环与while循环