在使用现有进程的多重处理时,如何关闭程序?你知道吗
import easygui
import multiprocessing
def func():
reply=easygui.buttonbox("start?",image="F:\project\phonber.png",choices=['yes','no'])
if reply=="yes":
exit_option()
if __name__=='__main__':
p=multiprocessing.Process(target=func,args=())
t=p.start()
print "1"
while True:
None
我要exit_option()
关闭程序。你知道吗
在sys模块中有一个名为exit的函数
相关问题 更多 >
编程相关推荐