From b005f946e05bb76b067995f15d9798723f18b942 Mon Sep 17 00:00:00 2001 From: YanYii Date: Tue, 29 May 2018 17:04:36 +0800 Subject: [PATCH] Update p01_start_stop_thread.rst fix: init param n, may be use --- source/c12/p01_start_stop_thread.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/c12/p01_start_stop_thread.rst b/source/c12/p01_start_stop_thread.rst index 2230b42..b6d0add 100644 --- a/source/c12/p01_start_stop_thread.rst +++ b/source/c12/p01_start_stop_thread.rst @@ -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: