📜  python 读取 yaml - Python 代码示例

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

代码示例4
import yaml

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