2014/02/16

Python 3.3 Thread

import time
from threading import Thread

def test():
 for i in range(1,11):
  print(i)
  time.sleep(1)

t = Thread(target=test)
t.start()




參考資料:
http://docs.python.org/3/library/threading.html
http://docs.python.org/3/library/time.html