Python3报错: AttributeError: 'dict' object has no attribute 'iteritems'

Python3报错AttributeError: 'dict' object has no attribute 'iteritems'

原因:iteritems是为python2环境中dict的函数

解决办法:在python3将iteritems改为items

 

相关文章:

  • 2022-01-11
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-10-23
相关资源
相似解决方案