0
0

PythonのDocstring

Last updated at Posted at 2023-11-05

参考リンク

google style

テンプレートは下記

def add(a, b):
    """
    2つの数値を受け取り、その和を返す関数。
    
    引数:
        a (float): 数値1
        b (float): 数値2
    
    戻り値:
        float: aとbの和
        
    例:
        >>> add(1,2)
        3
        
    注意事項:
    
    """
    return a + b
0
0
1

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
0
0