回答編集履歴
1
変数名変えた
test
CHANGED
@@ -10,17 +10,17 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
13
|
+
cond = True
|
14
14
|
|
15
15
|
|
16
16
|
|
17
17
|
def f():
|
18
18
|
|
19
|
-
global
|
19
|
+
global cond
|
20
20
|
|
21
21
|
time.sleep(1)
|
22
22
|
|
23
|
-
|
23
|
+
cond = False
|
24
24
|
|
25
25
|
|
26
26
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
thread.start()
|
30
30
|
|
31
|
-
while
|
31
|
+
while cond:
|
32
32
|
|
33
33
|
print("hoge")
|
34
34
|
|