if both values of in a?or?expression are true ,python will select the first one, and the second one in the?and?expression. for example:
result = (2 or 3) * (4 and 5)
print result
output 10
?以上就是sirius的學習筆記(2)的內(nèi)容,更多相關(guān)內(nèi)容請關(guān)注PHP中文網(wǎng)(www.php.cn)!?
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END