相关疑难解决方法(0)

从函数中获取docstring

我有以下功能:

def my_func():
    """My docstring is both funny and informative"""
    pass
Run Code Online (Sandbox Code Playgroud)

如何访问docstring?

python

167
推荐指数
3
解决办法
9万
查看次数

标签 统计

python ×1