python的import用法

1,主程序与模块在同一路径下 在程序testGetCRStatement.py中导入模块custom, 则直接使用import custom或from custom import *; 2, 程序所在目录是模块所在目录的父(或祖辈)目录 程序runAll.py中导入评级目录common下的log模块,需要在common下创建一个空文件__init__.py,然后使用 import common.l
相关文章
相关标签/搜索