ผู้ประกอบการสมาชิก Python
ผู้ประกอบการสมาชิก Python
ตัวดำเนินการสมาชิกใช้เพื่อทดสอบว่ามีการแสดงลำดับในวัตถุหรือไม่:
Operator | Description | Example | Try it |
---|---|---|---|
in | Returns True if a sequence with the specified value is present in the object | x in y | |
not in | Returns True if a sequence with the specified value is not present in the object | x not in y |