1、安装PyYAML pip install PyYAML 2、 导入PyYAML包和变量文件 Library yaml Variables ../var.yaml 变量文件var.yaml按照yaml格式编写