python使用with开启线程锁

 

 

c = threading.RLock()
with c:
     fd = datetime.datetime.strptime(fromDate, "%Y-%m-%d")
fromDate = fd.strftime("%m-%d-%Y")

 

posted @ 2019-07-24 16:38  AngDH  阅读(248)  评论(0编辑  收藏  举报