python线程锁

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

 

posted @ 2019-08-16 14:40  AngDH  阅读(136)  评论(0编辑  收藏  举报