What does 'yaml.parser.ParserError: expected '<document start>', but found '<block mapping start>'' mean?
问题 I have the following YAML file: [mysqld] user: "mysql" pid-file: /var/run/mysqld/mysqld.pid skip-external-locking old_passwords: 1 skip-bdb skip-innodb create_key: yes needs_agent: no knows_oop: True likes_emacs: TRUE women: - Mary Smith - Susan Williams and the following Python code: #!/usr/bin/env python import yaml with open("config.yml") as f: sample_config = f.read() print(yaml.load(sample_config)) But it gives me: Traceback (most recent call last): File "/home/moose/Desktop/bla.py",