Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 285 Bytes

13.md

File metadata and controls

18 lines (13 loc) · 285 Bytes
@author jackzhenguo
@desc 
@date 2019/2/15

13 链式比较

Python支持这种连续不等比较,写起来更方便

i = 3
print(1 < i < 3)  # False
print(1 < i <= 3)  # True
[上一个例子](12.md) [下一个例子](14.md)