Home >Database >Mysql Tutorial >sirius's study notes (2)

sirius's study notes (2)

黄舟
黄舟Original
2016-12-20 16:51:291062browse

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

The above is the content of Sirius’s study notes (2). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn