通常在多个不等式的时候,需要分着写,比如 x = 1 if x>0 and x<3: print(True) 但是在Python中居然可以连着一起写, x = 1 if 0<x<3: print(True)