- import thread
- def sum_a_bit(i, total):
- for j in range(i, i + 10000):
- total += j
- return total
- def f():
- total = 0
- for i in range(0, 15000000, 10000):
- total = sum_a_bit(i, total)
- print total
- for j in range(2):
- thread.start_new_thread(f, ())
- raw_input()