Sorry, 答案應該是2.22580645161

回答: 不讓貼公式hoho3652014-09-16 17:12:29

#Python code:

a = 0.69
b = 1 - a

average = 0
left = 1.0
i = 0

while i average += i * b * left
left = left * a
i = i + 1

print average

所有跟帖: 

請看我上麵的無限次答案:0.69/0.31=2.225806452 -jinjing- 給 jinjing 發送悄悄話 (22 bytes) () 09/17/2014 postreply 10:20:27

請您先登陸,再發跟帖!