#None,True,False ,非:not;或:or;与:and
#Python中比较运算运行同时进行与两个值进行比较,即:
>>>x=3
>>>1<x<3
False
>>>1 in (1,2)
True
>>>a=1
>>>b=1
>>>a is b
True
>>>1 is {‘a’:1} #1对应的是键名,而不是键值
False
>>>’a’ is {‘a’:1}
True
#None,True,False ,非:not;或:or;与:and
#Python中比较运算运行同时进行与两个值进行比较,即:
>>>x=3
>>>1<x<3
False
>>>1 in (1,2)
True
>>>a=1
>>>b=1
>>>a is b
True
>>>1 is {‘a’:1} #1对应的是键名,而不是键值
False
>>>’a’ is {‘a’:1}
True