#!/usr/bin/env python
# encoding: UTF-8

import threading

def worker(num):
    print'Worker:%s'%num
    return 

threads=[]
for i in range(5):
    t=threading.Thread(target=worker,args=(i,))
    threads.append(t)
    t.start()

#!/usr/bin/env python
# encoding: UTF-8

import threading

def worker(num):
    print'Worker:%s'%num
    return 

threads=[]
for i in range(5):
    t=threading.Thread(target=worker,args=(i,))
    threads.append(t)
    t.start()

#!/usr/bin/env python # encoding: UTF-8