《关闭小说畅读模式体验更好》
#部分人会因为抵抗而退回未接触状态(模拟忘记或排斥)
foriinrange(pop_size):
ifnew_popution[==2andrandom.random()
new_popution[=1
popution=new_popution
history.append(popution.t(2))
returnhistory
#范例执行(示范用)
if__name__=="__main__":
hist=simute_spread()
内容未完,下一页继续阅读