Инструменты пользователя

Инструменты сайта


scripts:yaml

YAML

# списки
my_list:
  - first
  - second
  - third
# или
my_list: ["first", "second", "third"] 
 
# Переменная
answer: 42
 
# Переменная-словарь
person:
  name: Vasya
  lastname: Pupkin
  title: Senior manager
# или
person: {name: Vasya, lastname: Pupkin, title: "Senior manager"}
 
# Список словарей
droids:
  - name: dog
    color: brown
    spec:
      level: "10"
      memory_size: "640KB"
  - name: android
    color: blue
    spec:
      level: "50"
      memory_size: "128MB"
scripts/yaml.txt · Последнее изменение: 30.07.2024 19:21 — 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki