yaml文档读取属性的时候提示没有get属性

一、原因

YAML文档格式不一致导致,是因为设置的db节点下的数据获取后默认成了一个值而不是按照字典结构获取的。

同样结构的system却并没有报错。

二、数据报错如下:

【yaml】报错【AttributeError: 'str' object has no attribute 'get'】

三、分析原因

【yaml】报错【AttributeError: 'str' object has no attribute 'get'】

 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
相关资源
相似解决方案