http://stackoverflow.com/questions/3221655/python-threading-string-arguments
args=()のタプルの中は引数が一つの時はカンマを入れる
import threading import time class Hoge: def __init__(self): Hoge.i = 0 def hoge(self,num): time.sleep(num) print "thread"+str(num)+" end" def main(self): print "main started" for i in range(5): thread = threading.Thread(target=self.hoge,args=(Hoge.i,)) thread.start() Hoge.i += 1 if __name__=="__main__": h = Hoge() h.main()