回答編集履歴

1

変数名変えた

2018/05/14 10:30

投稿

hayataka2049
hayataka2049

スコア30933

test CHANGED
@@ -10,17 +10,17 @@
10
10
 
11
11
 
12
12
 
13
- stop = True
13
+ cond = True
14
14
 
15
15
 
16
16
 
17
17
  def f():
18
18
 
19
- global stop
19
+ global cond
20
20
 
21
21
  time.sleep(1)
22
22
 
23
- stop = False
23
+ cond = False
24
24
 
25
25
 
26
26
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  thread.start()
30
30
 
31
- while stop:
31
+ while cond:
32
32
 
33
33
  print("hoge")
34
34