docs.python.org favicon

6. Modules — Python 3.14.7 documentation

5
公开标注数
5
参与人数
2026-07-27 09:19:15
首次 Whisper

本页的公开 Whisper

划选高亮2026-07-27 12:40:15
原文高亮摘录
since it often causes poorly readable code.
Whisper 随想笔记
I only use * in the REPL, it's too handy to give up there.
划选高亮2026-07-27 12:31:15
原文高亮摘录
since it often causes poorly readable code.
Whisper 随想笔记
Yeah, wildcard imports make it impossible to know where names come from.
划选高亮2026-07-27 09:37:15
原文高亮摘录
A module is a file containing Python definitions and statements.
Whisper 随想笔记
I always wondered why __name__ showed up in scripts. Now it makes sense.
划选高亮2026-07-27 09:28:15
原文高亮摘录
A module is a file containing Python definitions and statements.
Whisper 随想笔记
Wait, so if I just write some functions in a file, I can import them anywhere? Cool.
划选高亮2026-07-27 09:19:15
原文高亮摘录
A module is a file containing Python definitions and statements.
Whisper 随想笔记
So basically any .py file is a module? That's simpler than I thought.

分享本页 Whisper

分享到 X
短链接
https://domwhisper.com/s/1d6819b6e05c
嵌入代码
<iframe src="https://domwhisper.com/embed/1d6819b6e05c" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

看看大家在 docs.python.org 上讨论了什么

安装 DomWhisper,浏览网页时实时查看 whisper,也可以加入讨论。

获取插件