Qurak

Count

ใช้งานได้

Counts the number of occurrences of a pattern in a list.

Count[list, pattern]
Count[expr, pattern, levelspec]
Count[pattern]
Count[{a, b, a, c, a}, a] → 3Count[{1, 2, 3, 2, 1}, 2] → 2Count[{1, 2, 3}, 4] → 0Count[{x, x, x, y}, x] → 3

ใช้ใน

หัวข้อ

ที่เกี่ยวข้อง

ฟังก์ชันทั้งหมด 6300 รายการ · ใช้สิ่งนี้จากไคลเอนต์ MCP