Skip to content

Instantly share code, notes, and snippets.

@hamaguchi-amago
Created September 22, 2019 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamaguchi-amago/6cfadc635241f99db29ee499b6f3b918 to your computer and use it in GitHub Desktop.
Save hamaguchi-amago/6cfadc635241f99db29ee499b6f3b918 to your computer and use it in GitHub Desktop.
配列の後ろに要素を追加するサンプル
# -*- coding: utf-8 -*-
list = [1, 2, 3, 4]
print("追加前:" + str(list))
list.append(5)
print("追加後:" + str(list))
@hamaguchi-amago
Copy link
Author

ブログの記事で作成しました。
興味のある方はご覧ください。

【Python】配列の基本操作(宣言・初期化・追加・削除)
https://neko-py.com/python-declaration-init-add-delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment