sirius的学习笔记(2)

原文来自网络,侵权删

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

posted @ 2014-04-22 20:50  第八片叶子  阅读(204)  评论(0编辑  收藏  举报