我一直试图让我的脚本以这样的方式循环,它将加载1个文件中的输出,然后在加载完所有内容后,将值移动到输出文件2中,擦除输出文件1中的值并开始重新加载它们,然后当这些值关闭时,将值移动到输出2中(覆盖旧值)我希望这里的人知道为什么我在加载过程中随机地得到""Unboundlocalerror: Local Variable "Val“”Referenced been Assignment“错误,当我有一个非常小的输入文件时,脚本会按照我想要的方式执行strip()
oos = product.findNext
raise NotImplementedError("method not implemented")generator.generate()generator.generate()NotImplementedError: method not implementedga=GeneticAlgorithm()
ga.g