回答編集履歴
1
追記
answer
CHANGED
@@ -18,4 +18,12 @@
|
|
18
18
|
return True
|
19
19
|
except ValueError:
|
20
20
|
return False
|
21
|
+
|
22
|
+
def input_int(message):
|
23
|
+
while True:
|
24
|
+
input_str = input(message)
|
25
|
+
if is_int(input_str):
|
26
|
+
print("Input Successful !!!")
|
27
|
+
return int(input_str)
|
28
|
+
print("Input Error !!!")
|
21
29
|
```
|