对于那些读过我的的人来说,我想我找到了问题所在。问题在mutate方法中,特别是在本指令中:Chromosom k= new Chromosom(); // Class chromosom extends hashmap <integer,parc>for(int i=0;i<l.size();i++) ch.put(i,k.get(i)); // in this instruction
我编写了一个程序,打开一个图像,将它的字节读取到字节数组中,然后交换随机字节,然后让您保存它。这是可行的。然而,在我看来,我遇到了一个奇怪的错误,不应该出现在那里。def resave(path, ipath, rstart, rend, bytemin, bytemax): # uncomment the following line and bytes will becom