Python3报错:TypeError: unsupported operand type(s) for /: 'dict_values' and 'int'

Python3报错:TypeError: unsupported operand type(s) for /: 'dict_values' and 'int'

报错原因:

  • In python3, dict.values returns a dict_values object, which is not a list or tuple.

解决方法:Try coercing that into a list.

发布了496 篇原创文章 · 获赞 464 · 访问量 86万+

猜你喜欢

转载自blog.csdn.net/zhangvalue/article/details/103928328