1、python的每个模块的包中,都有一个__init__.py文件,有了这个文件,我们才能导入这个目录下的module。
其实,__init__.py里面是可以有内容的,我们在导入一个包时,实际上导入了它的__init__.py文件。
我们可以在__init__.py文件中再导入其他的包,或者模块。
根据实际需要 肯定代码内容不一样
2、 cnf={}这是一个默认参数,即如果不传入该参数的值,会默认将这个参数的值当成空字典 {} 传入函数内
3、https://docs.python.org/3/library/bdb.html?highlight=runeval#bdb.Bdb.run
runeval(expr, globals=None, locals=None)
Debug an expression executed via the eval() function. globals and locals have the same meaning as in run().
run(cmd, globals=None, locals=None)¶
Debug a statement executed via the exec() function. globals defaults to __main__.__dict__, locals defaults to globals