python的import用法
1,主程序与模块在同一路径下在程序testGetCRStatement.py中导入模块custom, 则直接使用import custom或from custom import *;2, 程序所在目录是模块所在目录的父(或祖辈)目录程序runAll.py中导入评级目录common下的log模块,需要在common下创建一个空文件__init__.py,然后使用 import common.log ...
原创
2018-04-11 11:21:07 ·
1623 阅读 ·
0 评论