Sample
Class
class TestClass:
"""
クラス概要
Args:
arg1(type) : 説明
arg2(type) : 説明
Attributes
property1(type) : 説明
property2(type) : 説明
"""
# 定数
CONST_VALUE1 = 100
# コンストラクタ
def __init__(self):
# メンバ変数定義
self.name = "hogehoge"
self.number = 100
@property
def property1(self):
"""
Property of this class
"""
return f"{self.name}: {self.number}"
def function1(self, v1:int, v2:int):
"""Return sum
Args:
v1(int): value1
v2(int): value2
Returns:
int : 説明
"""
最終更新日:
August 14, 2023
作成日: August 14, 2023
作成日: August 14, 2023