a = [rd.choice(["AT", "GC","TA", "CG"])for i in range(length)]
virus = [v.replace(virus[int(rd.random()*(len(virus+1))), rd.choice([virus]for v in virus
然而,下面是我到目前为止拥有的代码:CompA = 0.50CompCE= .125
x = random.random()
if x =< CompA: #Computer A has virusprob_compa= sum(generate() for i in range(100)) #prob that Comp A has