最全Pycharm教程(27)——Pycharm搜索導航之跳轉到聲明與定義

1、準備實例   (1)在工程目錄下創建Animals模塊(Alt+Insert→Python Package):   (2)創建一個Python文件(Alt+Insert→Python File):   在Mammals.py文件中輸入以下代碼:     在Carnivore.py, Herbivore.py文件中輸入以下代碼:   2、轉到聲明   將光標定位在Cat類實例的feeds()函數
相關文章
相關標籤/搜索