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)的内容,更多相关内容请关注龙方网络(www.yzlfxy.com)!
result = (2 or 3) * (4 and 5)
print result
output 10
以上就是sirius的学习笔记(2)的内容,更多相关内容请关注龙方网络(www.yzlfxy.com)!
郑重声明:本文版权包含图片归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们(delete@yzlfxy.com)修改或删除,多谢。
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。
留言与评论(共有 0 条评论) |