读取字典不存在的属性时报错。

解决方法:

检查字典属性拼写

增加字典属性判断:

if ‘body’ in d.keys()


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-07-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-05-20
相关资源
相似解决方案