Skip to content

Instantly share code, notes, and snippets.

@hamaguchi-amago
Created September 22, 2019 05:45
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/0f3f2fff3d05e6dc37ab001dd8f705f0 to your computer and use it in GitHub Desktop.
Save hamaguchi-amago/0f3f2fff3d05e6dc37ab001dd8f705f0 to your computer and use it in GitHub Desktop.
配列から要素を取得するサンプル
# -*- coding: utf-8 -*-
list = [1, 2, 3, 4]
print("0番目:" + str(list[0]))
print("1番目:" + str(list[1]))
print("2番目:" + str(list[2]))
print("3番目:" + str(list[3]))
@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