Python 术语表
not 关键字是一个逻辑操作符,用于反转条件语句的结果:
not
测试 a 是否不大于 b:
a = 33 b = 200 if not a > b: print("a 不大于 b")
亲自试一试