【python】編寫並運行第一個python文件

使用編輯器NodePad++ 1、輸出print 輸入print(‘hello, world’),並保存爲test.py。存放位置D:/testPy/test.py 打開cmd命令,cd到文件存放位置,然後輸入python test.py即可執行該py文件 2、輸入input 將test.py內容修改爲: name = input() print(‘hello,’, name) 即用戶先輸入nam
相關文章
相關標籤/搜索