进程线程 在进程中创建新线程: 方式一: import threating def foo(n): t1 = threading.Thread(target=foo,args=(1,)) t1.start 方式二: