Mat*_*ner 6 python import module python-3.x
在 Python 中,我如何执行以下等效操作
import http.client
Run Code Online (Sandbox Code Playgroud)
但使用相对导入:
from . import http.client
import .http.client
Run Code Online (Sandbox Code Playgroud)
对于http当前包中的包?然后我想client通过它的父名称访问该模块http.client,因为如果我进行了顶级导入,我就可以了。
| 归档时间: |
|
| 查看次数: |
3699 次 |
| 最近记录: |