回答編集履歴
1
公式ドキュメントのURLを追記
answer
CHANGED
@@ -12,4 +12,6 @@
|
|
12
12
|
>>> l_int = [int(x) for x in l_float]
|
13
13
|
>>> print(l_int)
|
14
14
|
[1, 2, 3, 100]
|
15
|
-
```
|
15
|
+
```
|
16
|
+
|
17
|
+
詳細は、[公式ドキュメント 5.1.3. リストの内包表記](https://docs.python.org/ja/3/tutorial/datastructures.html#list-comprehensions)と[公式ドキュメント 5.5. 辞書型 (dictionary)](https://docs.python.org/ja/3/tutorial/datastructures.html#dictionaries)をお読みください。
|