Python でマルチスレッドを実装する場合、threading モジュールを使用すると良い。 # -*- coding:shift_jis -*- import threading import time class ThreadTest(threading.Thread): def __init__(self, _name , _wait_time = 5): threading.Thread.__init__(self, target = self.thread_target, name = _name) self.wait_time = _wait_time def thread_target(self): print threading.Thread.getName(self) + " START." count = 3 while count > 0: time.sleep(f
