JavaScript/逻辑运算:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第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的版本

引言

true 和 false

模板:Leftrightflex

有待思考

模板:Leftrightflex 同样在 python 里也是这样,我猜测 0 在计算机里有特殊的含义