[PYTHON] docstring

docstring.py


def say_dic(word, *args, **kwargs):
    """
    test
    :param word:
    :param args:
    :param kwargs:
    :return: nothing
    """
    print(word)
    print(args)
    print(kwargs)
    for k, v in kwargs.items():
        print(k,v)

print(say_dic.__doc__)
print(help(say_dic))
test
    :param word:
    :param args:
    :param kwargs:
    :return: nothing
    
Help on function say_dic in module __main__:

say_dic(word, *args, **kwargs)
    test
    :param word:
    :param args:
    :param kwargs:
    :return: nothing

None

Recommended Posts

docstring
Python3> chaƮne de documentation / docstring