質問編集履歴
2
問題のコード追加(修正)
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
``
|
23
|
+
``RuntimeError: threads can only be started once``
|
24
24
|
|
25
25
|
|
26
26
|
|
@@ -33,6 +33,8 @@
|
|
33
33
|
|
34
34
|
|
35
35
|
問題のコード
|
36
|
+
|
37
|
+
|
36
38
|
|
37
39
|
```python
|
38
40
|
|
1
問題のコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,3 +29,43 @@
|
|
29
29
|
|
30
30
|
|
31
31
|
よろしくお願いします。
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
問題のコード
|
36
|
+
|
37
|
+
```python
|
38
|
+
|
39
|
+
import time
|
40
|
+
|
41
|
+
import threading
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
def func1():
|
48
|
+
|
49
|
+
time.sleep(1)
|
50
|
+
|
51
|
+
print("func1")
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
thread_1 = threading.Thread(target=func1)
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
thread_1.start()
|
64
|
+
|
65
|
+
thread_1.start()
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
```
|