小编Wak*_*eng的帖子

为什么使用“from module import A as A”而不是“from module import A”

在阅读fastapi的源代码时,这一行让我很模糊:

from starlette.testclient import TestClient as TestClient
Run Code Online (Sandbox Code Playgroud)

为什么不只是:from starlette.testclient import TestClient

python mypy

9
推荐指数
1
解决办法
337
查看次数

标签 统计

mypy ×1

python ×1