标签:
# encoding: UTF-8 import threading import time class MyThread(threading.Thread): def run(self): for i in range(3): time.sleep(1) msg = "I‘m "+self.name+‘ @ ‘+str(i) print msg def test(): for i in range(5): t = MyThread() t.start() if __name__ == ‘__main__‘: test()
标签:
原文地址:http://www.cnblogs.com/linbinqiang/p/5329031.html