Проверка шаблона шины для iOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

valueArray.py 309B

11 months ago
123456789101112
  1. def valueArray(value):
  2. # Удостоверяем наличие скобок.
  3. if not (
  4. value.startswith("[") and
  5. value.endswith("]")
  6. ):
  7. return None
  8. # Исключаем скобки.
  9. noBrackets = value[1:-1]
  10. parts = noBrackets.split(", ")
  11. return parts