dir0文件夹下有file1.py、file2.py两个文件和dir3、dir4两个子文件夹,dir3中有file3.py文件,dir4中有file4.py文件。
【python-import 模块】 xxx.py文件中: import 模块 ---------- 运行xxx.py文件时,遇到:import 模块时: 会先去当前版本解释器安装目录下的Lib目录中找内置模块
英文原文:https://alex.dzyoba.com/blog/python-import/ 译者:javylee 《Python人工智能和全栈开发》2018年07月23日即将在北京开课