MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / count

Method count

tools/python-3.11.9-amd64/Lib/_collections_abc.py:1032–1034  ·  view source on GitHub ↗

S.count(value) -> integer -- return number of occurrences of value

(self, value)

Source from the content-addressed store, hash-verified

1030 raise ValueError
1031
1032 def count(self, value):
1033 'S.count(value) -> integer -- return number of occurrences of value'
1034 return sum(1 for v in self if v is value or v == value)
1035
1036Sequence.register(tuple)
1037Sequence.register(str)

Callers

nothing calls this directly

Calls 1

sumFunction · 0.50

Tested by

no test coverage detected