popution[=2
history=[]
forstepinraeps:
new_popution=popution.copy
foriinrangepop_size:
ifpopution[==2:
#试着影响k随机接触者
tacts=random.samplerangepop_size,k=5
fortacts:
ifpopution[c]==0:
内容未完,下一页继续阅读