【发布时间】:2019-10-21 13:47:26
【问题描述】:
经过几个小时的挖掘,这旨在成为一个自我回答的问题,我发现这个思考过程可能对其他可能没有正式 Compsci 背景的人有用。
这一切都始于对为什么要输入一个特定的 if 语句的困惑。
>>>if (2 & 2):
... print("true")
true
为什么要输入这个 if 语句?
【问题讨论】:
标签: python boolean bitwise-operators logical-operators truthiness