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



posted @ 2021-03-29 14:51  达芬奇画鸡蛋  阅读(293)  评论(0编辑  收藏  举报