Python错误之TypeError: unsupported operand type(s) for +: ‘dict_keyiterator‘ and ‘list‘
环境 python 2.7/3.7networkx版本 2.1复现算法的时候出现错误TypeError: object of type ‘dictionary-keyiterator’ has no len()和错误TypeError: unsupported operand type(s) for +: ‘dict_keyiterator’ and ‘list’原因:networkx 2与networkx1不同解决方法:将nebs的类型改为list即可...
原创
2020-12-21 14:39:36 ·
581 阅读 ·
0 评论