Python yaml
Jump to navigation
Jump to search
pip install pyyaml
import yaml with open("example.yaml", 'r') as stream: try: print(yaml.safe_load(stream)) except yaml.YAMLError as exc: print(exc)
pip install pyyaml
import yaml with open("example.yaml", 'r') as stream: try: print(yaml.safe_load(stream)) except yaml.YAMLError as exc: print(exc)