Python入門——第一個Python程序

1.1 Hello Python書寫步驟

       步驟一:新建文本文檔文件,修更名稱爲hello.pypython

       步驟二:使用記事本打開文件,書寫程序內容以下:spa

   

1 print("hello python")

 

       步驟三:打開命令行,輸入執行指令:python hello.py命令行

        

       運行結果:屏幕顯示hello pythoncode

相關文章
相關標籤/搜索