sirius的学习笔记(2)

黄舟
黄舟 原创
2016-12-20 16:51:29 793浏览

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)的内容,更多相关内容请关注PHP中文网(m.sbmmt.com)!


声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。