python5.2 条件测试

1.大小写影响检查结果

2.使用 .lower() 方法转换无关紧要的大写字符

3.检查是否不相等

4.比较数字

5.检查多个条件:使用 and

6.检查多个条件:使用 or

7.检查特定值是否包含在列表中

 

8. not in

猜你喜欢

转载自www.cnblogs.com/ljt828/p/12890480.html