smith jack wrote: > have run this program for many times,and the result is always 5050 You might not need to make it in a multiprocess environment
Try it in the python (3) shell >>> tot= 0 >>> for k in range(1,100): ... tot += k ... print(tot) ... And watch the risults. -- goto /dev/null -- http://mail.python.org/mailman/listinfo/python-list