Merge pull request #235 from YanYii/patch-1

Update p01_start_stop_thread.rst
This commit is contained in:
XiongNeng
2018-05-30 18:58:31 +08:00
committed by GitHub

View File

@@ -112,7 +112,7 @@ Python解释器直到所有线程都终止前仍保持运行。对于需要长
class CountdownThread(Thread):
def __init__(self, n):
super().__init__()
self.n = 0
self.n = n
def run(self):
while self.n > 0: