Update p01_start_stop_thread.rst

fix: init param n, may be use
This commit is contained in:
YanYii
2018-05-29 17:04:36 +08:00
committed by GitHub
parent 92e50484aa
commit b005f946e0

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: