python之模块调用

1.以 atm_run 为入口,在atm中的main模块调用config中的settings

from config import settings

2.以atm_run为入口,在main中调用logger中的方法log

from .logger import log

3.

在同一模块目录下,modules 想要调用my_modules模块

from . import my_module

猜你喜欢

转载自www.cnblogs.com/huizaia/p/9253986.html
今日推荐