python导入package里面的模块操作

要想导入package里面的模块,可在package的__init__ 里面添加imprort . from 模块名  即可

 

还有一种操作模式:导入的时候使用包名.模块名

猜你喜欢

转载自blog.csdn.net/legend818/article/details/90695503