今天在做一个项目的时候卡在模块导入这个点上了.赶紧回头总结一下 一.被导入的文件和工作的脚本在一个目录下 1.导入一个.py文件里的功能或参数(导入模块) 先看一下目录结构: module里有两个功能,一个参数,我们要把module里的内容导入到test里(图里的model拼写错误,请忽略~~) data = 'in the test' def fun1(): print('in the test fun1') def fun2(): print('in the test fun2') modu