摘要: 先看python中内置的list不能作为字典的key. 可将list或者ndarray转化为tuple再做索引。 list不能进行hash: 两个ndarray转为tuple后进行hash,所得的hash值是相同的 更新… 阅读全文
posted @ 2018-11-08 18:36 汉尼拔草 阅读(2879) 评论(0) 推荐(0) 编辑