天天看點

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      

繼續閱讀