Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的表达式是什么意思?有人可以告诉我吗?
!((number > 6) || (number <= 2))
它检查是否number在 2 和 6 之间。更具体地说,它检查是否number是以下之一:
number
3 4 5 6
一个更好的写法是:(number > 2 && number <= 6)
(number > 2 && number <= 6)