回答編集履歴

2

再送

2018/09/06 07:04

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
File without changes

1

追記

2018/09/06 07:04

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -1,4 +1,4 @@
1
- こんな感じでしょうか。str.isdigit を利用します。
1
+ こんな感じでしょうか。[str.isdigit](https://docs.python.jp/3/library/stdtypes.html#str.isdigit) を利用します。
2
2
 
3
3
  ```Python
4
4
 
@@ -22,6 +22,18 @@
22
22
 
23
23
 
24
24
 
25
+ **実行結果** [Wandbox](https://wandbox.org/permlink/K4XhLpW0npEcKSIY)
26
+
27
+ ```
28
+
29
+ [3]
30
+
31
+ ```
32
+
33
+
34
+
35
+ ---
36
+
25
37
  関数search_numsは次のように書いても良いです。
26
38
 
27
39
  ```Python