A
A
Andre_air2017-11-06 18:17:39
Python
Andre_air, 2017-11-06 18:17:39

Python: how to select value from dictionary in YAML?

There is a values.yaml file that contains the following data block:

value:
  - line1:
      value_name: Dog
      value_id: 1
  - line2:
      value_name: Cat
      value_id: 2

How can you get the value of "Dog" in Python code ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DarkMode, 2017-11-06
@DarkMode

https://stackoverflow.com/a/6866697/8442869

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question