进程线程

在进程中创建新线程:

方式一:

import threating

def foo(n):

t1 = threading.Thread(target=foo,args=(1,))

t1.start

方式二:

 

posted @ 2018-04-11 21:22  文二1234  阅读(68)  评论(0编辑  收藏  举报