yaml

installation

pip install pyyaml

sample

member.yaml

developer:
  - june
  - hello
  - world
import yaml

with open('members.yaml') as file:
    members = yaml.load(file, Loader=yaml.FullLoader)
    print(members)
{'developer': ['june', 'hello', 'world']}

정리

References

Last updated

Was this helpful?