与gmail交互的Python接口。
backp的Python项目详细描述
在
在后台运行函数的Python接口。
功能:
- 后台-在后台运行函数
用法:
>>> import backpy >>> def myFunction(text): while 1: print(text)>>> thread = backpy.background(target = myFunction, args = ("hello!")) # run >>> # the function myFunction in the background with args ("hello!") >>> thread._stop() # stop the thread. >>> def myEndFunction(data): print('Finished', data) >>> thread = backpy.background(mode = 'basic+finish', target = myFunction, args = ("hello!"), finish = myEndFunction, fargs = ("data")) >>> thread._stop() # stop the thread. </pre>
- 项目
标签: