- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 112字
- 2021-07-09 20:40:21
Writing a simple Hello World! program
Congratulations on your successful installation. Now you can start programming. Open Notepad++ and create a new file. In the new file, type the following:
print "Hello World!"
Save the file as hello.py.
Open the command prompt and traverse to the folder where your file is located using cd and then the path of the folder. For executing the file, the command will be python hello.py as shown in the following screenshot:

It is quite easy, isn't it? Likewise, you can execute all the Python files. Once you start working on projects and large files, it's always good to remain organized by creating a folder structure.
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- Vue.js 3.x快速入門
- 計算思維與算法入門
- UML和模式應(yīng)用(原書第3版)
- Oracle從新手到高手
- Django:Web Development with Python
- Python自然語言處理(微課版)
- PHP+MySQL網(wǎng)站開發(fā)項目式教程
- 從Excel到Python:用Python輕松處理Excel數(shù)據(jù)(第2版)
- Instant Nancy Web Development
- 計算機(jī)應(yīng)用基礎(chǔ)案例教程
- R語言數(shù)據(jù)可視化:科技圖表繪制
- 數(shù)字媒體技術(shù)概論
- 安卓工程師教你玩轉(zhuǎn)Android
- C#程序開發(fā)參考手冊