test1.py 269 B

12345678
  1. # topics = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
  2. # num_groups = 4
  3. #
  4. # print([topics[i::num_groups] for i in range(num_groups)])
  5. v = "{{next_cursor}}"
  6. if isinstance(v, str) and v.startswith("{{") and v.endswith("}}"):
  7. key = v.strip("{}")
  8. print(key)