unicode_pos.py 195 B

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