質問編集履歴
1
エラー内容を変更しました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
def print_info(p:Player):
|
|
11
11
|
while (p.next != None):
|
|
12
|
-
print("{:>2d}".format(int(p.number)),"{:
|
|
12
|
+
print("{:>2d}".format(int(p.number)),"{:str}".format(p.name),"{:str}".format(p.profile),end="")
|
|
13
13
|
p = p.next
|
|
14
14
|
print("")
|
|
15
15
|
|
|
@@ -37,11 +37,5 @@
|
|
|
37
37
|
print_info(d_old)
|
|
38
38
|
```
|
|
39
39
|
表示されているエラーコード
|
|
40
|
-
```
|
|
41
|
-
|
|
40
|
+
``ValueError: Invalid format specifier`
|
|
42
|
-
File "C:\Users\soldi\Documents\ex10_src\ex10_src\ex09_1.py", line 49, in <module>
|
|
43
|
-
print_info(d_old)
|
|
44
|
-
File "C:\Users\soldi\Documents\ex10_src\ex10_src\ex09_1.py", line 24, in print_info
|
|
45
|
-
print("{:>2d}".format(int(p.number)),"{:s}".format(p.name),"{:s}".format(p.profile),end="")
|
|
46
|
-
ValueError: Unknown format code 's' for object of type 'int'
|
|
47
41
|
```
|