kir*_*iri 5 python return-value pycharm
我在 PyCharm 的文档片段中看到了这一点。
def a_func()
Inferred type: () -> dict[str, dict]
Run Code Online (Sandbox Code Playgroud)
我知道->函数定义中的意思是“返回值”,但这部分是什么dict[str, dict]意思?
演示这一点的最简单的函数是:
def a_func()
Inferred type: () -> dict[str, dict]
Run Code Online (Sandbox Code Playgroud)
它由编辑器 → 代码完成中的“自动弹出文档”设置显示。启用此功能后,将鼠标悬停在上面的代码片段上时会显示。this()
| 归档时间: |
|
| 查看次数: |
10409 次 |
| 最近记录: |