题解 | #条件比较#
条件比较
http://www.nowcoder.com/practice/fbfcce672f1f4060998f018ad119dc6f
print(2==3) print(2!=3) print(2>3) print(2<3) print(2>=3) print(2<=3) print(2<3 and 2<1) print(2<3 or 2<1) print('Python'=='Python') print('Python2'!='Python3') print('PYTHON'.lower()=='Python'.lower()) my_list = [1,2,3] if 2 in my_list: print('2 is in my_list!') if 8 not in my_list: print('8 is not in my_list!')