天天看点

PyCharm提示: cannot find declaration to go to

直接说解决方法:

想跳转到函数声明或定义的时候,出现“Cannot find declaration to goto”

from common.business import apiHeader      

 我在py文件A里想调用common文件夹下的business方法。虽然文件A和common在同一个文件夹,会报错,

所以我引入的时候,从跟目录引入,如下

from pyunit.common.business import apiHeader      

继续阅读