码迷,mamicode.com
首页 > 编程语言 > 详细

Python 如何实现 单实例

时间:2019-08-03 15:10:17      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:ack   tar   The   class   only   over   ons   blank   make   

出处:https://stackoverflow.com/questions/380870/make-sure-only-a-single-instance-of-a-program-is-running

from tendo import singleton
me = singleton.SingleInstance() # will sys.exit(-1) if other instance is running

https://pypi.org/project/tendo/#files

Python 如何实现 单实例

标签:ack   tar   The   class   only   over   ons   blank   make   

原文地址:https://www.cnblogs.com/liujx2019/p/11294522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!