circuitpython/tests/unicode/unicode_pos.py

6 lines
195 B
Python
Raw Permalink Normal View History

# str methods with explicit start/end pos
print("Привет".startswith("П"))
print("Привет".startswith("р", 1))
print("абвба".find("а", 1))
print("абвба".find("а", 1, -1))