装了Yaml 然后代码一运行就报错 YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe.

装了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.

转载:https://blog.csdn.net/rp517045939/article/details/88838417

解决

不用改很多代码 加一句就行了 在yaml.load(list, Loader=yaml.FullLoader) 加上 Loader=yaml.FullLoader 就行了 不过还有更多用法 看下面

 

 

 

 

然后不再报错

 

posted @   阳光美美哒  阅读(238)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示