micropython/tests/basics/bytearray_count.py

8 wiersze
126 B
Python

try:
bytearray.count
except AttributeError:
print("SKIP")
raise SystemExit
print(bytearray(b"aaaa").count(b"a"))