摘要: 1、线程、 线程共享的不安全性 ''' 线程共享数据的不安全性 ''' import time from threading import Thread, current_thread, Lock ticket = 10 def sale_ticket(lock): global ticket wh 阅读全文
posted @ 2019-08-15 21:06 刚-- 阅读(178) 评论(0) 推荐(0) 编辑