为什么python设计时要有__init__.py才视为包
this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path.
大致的理解是:
可能会有一些文件夹,比如有个专门放字符串的文件夹叫string,如果
原创
2017-12-13 20:20:53 ·
2095 阅读 ·
0 评论