Python中的成员运算符(in 和 not in)是什么?
in
not in
成员运算符主要是用来判断A是否是B的成员。例如:
In [1]: a = {} In [2]: 1 in a Out[2]: False In [3]: 1 not in a Out[3]: True