pip install PyYAML
When I try to output a YAML file with PyYAML installed in
The dictionary as it is came out.
import yaml
yaml.dump({"key": "value"}, default_flow_style=False)
http://pyyaml.org/wiki/PyYAMLDocumentation#Dictionarieswithoutnestedcollectionsarenotdumpedcorrectly
Recommended Posts