📜  在 python 代码示例中从 yaml 文件中读取数据

📅  最后修改于: 2022-03-11 14:45:50.780000             🧑  作者: Mango

代码示例2
import yaml

# Read YAML file
with open("data.yaml", 'r') as stream:
    data_loaded = yaml.safe_load(stream)