Python3报错:TypeError: unsupported operand type(s) for /: 'dict_values' and 'int'
报错原因:
-
In python3,
dict.valuesreturns adict_valuesobject, which is not alistortuple.
dict.values returns a dict_values object, which is not a list or tuple.相关文章: