读取yaml文件警告提示:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(fr)
如截图:
解决办法:yaml.load(input, Loader=yaml.FullLoader) ,运行读取yaml文件 警告解决