Skip to content

Commit b005f94

Browse files
author
YanYii
authored
Update p01_start_stop_thread.rst
fix: init param n, may be use
1 parent 92e5048 commit b005f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c12/p01_start_stop_thread.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Python解释器直到所有线程都终止前仍保持运行。对于需要长
112112
class CountdownThread(Thread):
113113
def __init__(self, n):
114114
super().__init__()
115-
self.n = 0
115+
self.n = n
116116
def run(self):
117117
while self.n > 0:
118118

0 commit comments

Comments
 (0)