Я ищу что-то вроде этого:
Код: Выделить всё
def my_func(x):
"""prints x.
:param x: string to print
:example:
my_func("hello world!")
"""
print(x)
Подробнее здесь: https://stackoverflow.com/questions/787 ... docstrings
Код: Выделить всё
def my_func(x):
"""prints x.
:param x: string to print
:example:
my_func("hello world!")
"""
print(x)