1. 程式人生 > 其它 >Python-Windows下執行Python指令碼

Python-Windows下執行Python指令碼

技術標籤:Pythonpython

Python-Windows下執行Python指令碼 親測可用

在windows安裝python環境教程中 安裝好了python環境https://blog.csdn.net/qq_45937199/article/details/111463310,那如何執行python程式呢?

執行很簡單,命令列進入到python程式所在目錄,
直接輸入 python test.py 指令碼檔名稱即可
在這裡插入圖片描述
test.py指令碼程式中就一行程式碼

print("test")