JavaScript/逻辑运算:修订间差异
来自康健生活
| 第23行: | 第23行: | ||
true | true | ||
</pre>}}}} | </pre>}}}} | ||
== 有待思考 == | |||
{{leftrightflex|<syntaxhighlight lang="javascript"> | |||
0 || true | |||
0 && true | |||
1 || true | |||
1 && true</syntaxhighlight>|{{consoleout|<pre> | |||
true | |||
0 | |||
1 | |||
true | |||
</pre>}}}} | |||
同样在 python 里也是这样,我猜测 0 在计算机里有特殊的含义 | |||
2020年8月4日 (二) 12:16的版本
No categories