摘要:
from threading import Thread,current_thread import time def task(): print('%s is running' %current_thread().name) time.sleep(3) print('%s is done' %cu 阅读全文
摘要:
from multiprocessing import Process import time def task(name): print("start",name) time.sleep(5) print("stop",name) if __name__ == '__main__': p = Process(target=task,args=("jerr... 阅读全文