#本文仅为个人学习过程的整理和记录, if there is a blog from others, the site extracts the content, I will clearly mark, if there is infringement, please contact me, I will be deleted in the first time.
The following information is compiled from the (1) Liaoche python tutorial http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000
(2) Concise python tutorial http://woodpecker.org.cn/abyteofpython_cn/chinese/
(1) Logical operator and
X=int (Input (' Please input x: '))
Y=int (Input (' Please input y: '))
If X>=60 and y>=60:
Print (' good ')
Else
Print (' bad ')
(2) Logical operator or
X=int (Input (' Please input x: '))
Y=int (Input (' Please input y: '))
If x>=80 or y>=80:
Print (' good ')
Else
Print (' bad ')
(3) Logical operator not
def fun ():
return 0
X=int (Input (' Please input x: '))
Y=int (Input (' Please input y: '))
If not fun ():
Print (' OK ')
Python learning log for small y-Process Control (logical character)