怎麼查詢python裝在哪裡

karspb發表於2021-09-11

怎麼查詢python裝在哪裡

Python是一種跨平臺的計算機程式設計語言。是一種物件導向的動態型別語言,最初被設計用於編寫自動化指令碼(shell),隨著版本的不斷

更新和語言新功能的新增,越多被用於獨立的、大型專案的開發。

推薦:

從官網下載python的安裝包,安裝過程中可選擇裝在C盤或D盤或者其他的磁碟。

如果忘記了安裝在哪裡,可以在命令列中使用以下命令

where python

會顯示python的絕對路徑

C:UsersAdministrator>where python
C:UsersAdministratorAppDataLocalProgramsPythonPython37python.exe

C:UsersAdministrator>

使用python

同樣開啟命令列,輸入Python,如下

C:UsersAdministrator>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

此時便進入了python的互動模式,可以編寫程式碼了。

更多技術請關注。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2001/viewspace-2834168/,如需轉載,請註明出處,否則將追究法律責任。

相關文章