读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文件警告提示:

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文件 警告解决



原文地址:https://www.cnblogs.com/huaegg/p/14592362.html