回答編集履歴
2
方法追加
test
CHANGED
@@ -23,3 +23,21 @@
|
|
23
23
|
print(array)
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
あるいは
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```python
|
34
|
+
|
35
|
+
array = [['2','13','23','21'],['3','53','13'],['54','32','8','53','7','2']]
|
36
|
+
|
37
|
+
for row in array:
|
38
|
+
|
39
|
+
row[:] = map(int, row)
|
40
|
+
|
41
|
+
print(array)
|
42
|
+
|
43
|
+
```
|
1
方法追加
test
CHANGED
@@ -7,3 +7,19 @@
|
|
7
7
|
print(array)
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
あるいは
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```python
|
18
|
+
|
19
|
+
array = [['2','13','23','21'],['3','53','13'],['54','32','8','53','7','2']]
|
20
|
+
|
21
|
+
array = [list(map(int, row)) for row in array]
|
22
|
+
|
23
|
+
print(array)
|
24
|
+
|
25
|
+
```
|