逻辑运算符短路特性

&& 短路特性

遇到假即为假,不会判断下一组表达式

image

|| 短路特性

遇到真即为真,不会判断下一组表达式

image

posted @ 2023-03-19 09:03  Qing-Huan  阅读(73)  评论(0)    收藏  举报