【解决】argument of type ‘Word2Vec‘ is not iterable 世上有多少個繽紛樂園任你行 2022-03-09 1,222 阅读1分钟 报错信息为'Word2Vec'类型的参数无法遍历. 原因: 这里使用到的代码为: if word in model_word2vec: 问题就出在这儿,现在函数改了,将代码改为 vocab = model.wv if word in vocab: 即可解决问题.