質問編集履歴

1

エラー内容を変更しました。

2019/06/27 12:55

投稿

h_proc
h_proc

スコア68

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  while (p.next != None):
22
22
 
23
- print("{:>2d}".format(int(p.number)),"{:s}".format(p.name),"{:s}".format(p.profile),end="")
23
+ print("{:>2d}".format(int(p.number)),"{:str}".format(p.name),"{:str}".format(p.profile),end="")
24
24
 
25
25
  p = p.next
26
26
 
@@ -76,18 +76,6 @@
76
76
 
77
77
  表示されているエラーコード
78
78
 
79
- ```
80
-
81
- Traceback (most recent call last):
79
+ ``ValueError: Invalid format specifier`
82
-
83
- File "C:\Users\soldi\Documents\ex10_src\ex10_src\ex09_1.py", line 49, in <module>
84
-
85
- print_info(d_old)
86
-
87
- File "C:\Users\soldi\Documents\ex10_src\ex10_src\ex09_1.py", line 24, in print_info
88
-
89
- print("{:>2d}".format(int(p.number)),"{:s}".format(p.name),"{:s}".format(p.profile),end="")
90
-
91
- ValueError: Unknown format code 's' for object of type 'int'
92
80
 
93
81
  ```