Created
September 22, 2019 06:28
-
-
Save hamaguchi-amago/6cfadc635241f99db29ee499b6f3b918 to your computer and use it in GitHub Desktop.
配列の後ろに要素を追加するサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
list = [1, 2, 3, 4] | |
print("追加前:" + str(list)) | |
list.append(5) | |
print("追加後:" + str(list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ブログの記事で作成しました。
興味のある方はご覧ください。
【Python】配列の基本操作(宣言・初期化・追加・削除)
https://neko-py.com/python-declaration-init-add-delete