python threading

晚上回来睡不着,随便写了下。

  1 #!/usr/bin/python
  2 #condig:utf-8
  3 import threading,time
  4 
  5 def sayhello():
  6     print "test!!"
  7     #time.sleep(1) 
  8 
  9 for i in range(100):
 10     i=threading.Thread(target=sayhello)
 11     i.start()
原文地址:https://www.cnblogs.com/xiaoCon/p/3587456.html