字体:大 中 小
护眼
关灯
上一页
目录
下一章
二章 (第7/7页)
ew_popution[c]=2 1 else: #有机会是只是「接触但未采纳」 new_popution[c]=1 elifpopution[c]==1: #已接触过但犹豫的人,再次接触有机会采纳 ifrandom.random new_popution[c]=2 #部分人会因为抵抗而退回未接触状态模拟忘记或排斥 foriinrangepop_size: ifnew_popution[==2andrandom.random 1 new_popution[=1 popution=new_popution history.appendpopution.t2 returnhistory #范例执行示范用 if__name__=="__main__": hist=simute_spread print"采纳者数目每回合:",hist print"最高采纳者:",maxhist,"於回合",hist.indexmaxhist 「AI没有发现军队,那是不可能的,所以需要病毒,我知道病毒你不能给我,就只是versation,病毒不需要,但是会写一些程式,需要你帮忙,很简单的,这样?」
上一页
目录
下一章