4 ответов
+ 9
A Python object's docsting is a triple-quoted string constant that appears as the first statement in an object's definition. It is intended to serve as a brief summary for your object, e.g. and is accessible to the help() in function.
def f(x):
"""Returns foo of x"""
# line above is this function's docstring
result = foo (x)
return result
+ 2
Hello Eric
+ 1
Pls like my news