📜  python 为什么检查 __name__ 很重要 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:34.304000             🧑  作者: Mango

代码示例1
This allows our program to be executable by itself, but friendly to other Python modules who may want to import some functionality without having to run the code.