python 文件,,1. 引入模块fro
python 文件,,1. 引入模块fro
1. 引入模块
from module import do_module # 若引入的文件在同级文件夹的下面,要这么写,从执行文件的下一级开始写路径
from web.web1.web2.import cal # 包与包之间用点来联系
do_module.run() 引用do_module 中的函数
python 文件
from module import do_module # 若引入的文件在同级文件夹的下面,要这么写,从执行文件的下一级开始写路径
from web.web1.web2.import cal # 包与包之间用点来联系
do_module.run() 引用do_module 中的函数
python 文件
评论关闭