摘要: import threadingimport timelock = threading.Lock() #创建锁def fun(data): try: lock.acquire(True) #锁定 print(" > fun 1:",time.strftime('%Y-%m-%d %H:%M:%S', 阅读全文
posted @ 2019-11-02 11:37 K_Code 阅读(5788) 评论(0) 推荐(0)