data: name: itcast age: 13
import yaml with open("./hello.yaml", "r") as f: data = yaml.load(f) print(data)