Kaydet (Commit) 44efc652 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fix accumulate() example. (Reported by David Murray.)

üst d585218a
......@@ -824,7 +824,7 @@ itertools
modeled on APL's *scan* operator and Numpy's *accumulate* function:
>>> from itertools import accumulate
>>> list(accumulate(8, 2, 50))
>>> list(accumulate([8, 2, 50]))
[8, 10, 60]
>>> prob_dist = [0.1, 0.4, 0.2, 0.3]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment