首页 > 学院 > 开发设计 > 正文

sirius的学习笔记(2)

2019-11-14 17:47:39
字体:
来源:转载
供稿:网友

原文来自网络,侵权删

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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表