Python 成员运算符
Python 成员运算符
成员运算符用于测试序列是否在对象中出现。
运算符 | 描述 | 示例 | 试一试 |
---|---|---|---|
in | 如果对象中存在具有指定值的序列,则返回 True | x in y | 试一试 » |
not in | 如果对象中不存在具有指定值的序列,则返回 True | x not in y | 试一试 » |
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]