要看你的目标是什么
代码语言:javascript复制1.字符串
>>> "in" in "indigo"
True
>>> "in" in "violet"
False
>>> "0" in "10"
True
>>> "1" in "10"
True
2. 数组
>>> "in" in ["in", "out"]
True
>>> "in" in ["indigo", "violet"]
False
3. 字典,是看key
>>> "in" in {"in": "out"}
True
>>> "in" in {"out": "in"}
False