草稿 · 2022年5月1日 0

草稿:Python 简洁比较运算

定义变量:
x = 10
示例需求:
if x > 5 and x < 15:
    print("Yes")
简化编写:
if 5 < x < 15:
    print("Yes")