装了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 就行了 不过还有更多用法 看下面
然后不再报错