小编use*_*219的帖子

Python Google 文档字符串格式:不止一种类型的参数?

我正在使用 Google 风格的 python 文档字符串格式。有一个函数,输入参数可以是字典、列表或字符串。docstring中多种数据类型的格式是什么?

喜欢

Args:
    input (str, list, dict): input of this function
Run Code Online (Sandbox Code Playgroud)

python docstring

5
推荐指数
1
解决办法
2865
查看次数

标签 统计

docstring ×1

python ×1