1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

Pythonの命名規約についてまとめてみました。
PEP8では、Pythonコードの命名において、どの表記方法を用いるべきか定義しています。ここでは、用途とそれに合わせた表記方法を一覧にして説明します。一覧のなかで出てくる一般的な命名の表記方法は次の通りです。

表記方法

image.png

PEP8での命名規約

image.png

PEP8の命名規約で重視されているのは「実装よりも使い方を表した名前」にすることです。命名に迷ったときは、標準ライブラリや公開されているサードパーティライブラリの命名を参考にしてみるのもよいでしょう。

※PEP8とは
https://qiita.com/eric50905/items/5a98219bc9b87e732d18

おわりに

ここまで読んでいただきありがとうございます!

参考文献

Pythonエンジニア育成推進協会監修 Python実践レシピ 単行本(ソフトカバー) – 2022/1/19
鈴木 たかのり (著), 筒井 隆次 (著), 寺田 学 (著), 杉田 雅子 (著), 門脇 諭 (著), 福田 隼也 (著)
p.024

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?