回答編集履歴
1
追記
test
CHANGED
@@ -5,3 +5,29 @@
|
|
5
5
|
new_per = resident.Resident(l_per[0], l_per[1], l_per[2], str(l_per[3]), l_per[4])
|
6
6
|
|
7
7
|
```
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
---
|
12
|
+
|
13
|
+
同様のエラーを起こすコードはこちら。
|
14
|
+
|
15
|
+
```Python
|
16
|
+
|
17
|
+
>>> def hoge(arg1, arg2):
|
18
|
+
|
19
|
+
... pass
|
20
|
+
|
21
|
+
...
|
22
|
+
|
23
|
+
>>> hoge(1, 2)
|
24
|
+
|
25
|
+
>>> hoge([1, 2])
|
26
|
+
|
27
|
+
Traceback (most recent call last):
|
28
|
+
|
29
|
+
File "<stdin>", line 1, in <module>
|
30
|
+
|
31
|
+
TypeError: hoge() missing 1 required positional argument: 'arg2'
|
32
|
+
|
33
|
+
```
|