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