一. 报错信息
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
二. 出现原因
YAML 5.1版本后弃用了yaml.load(file)这个用法,因为觉得很不安全,5.1版本
之后就修改了需要指定Loader,通过默认加载器(FullLoader)禁止执行任意函数,
该load函数也变得更加安全
三. 解决办法