- Practical Data Wrangling
- Allan Visochek
- 238字
- 2021-07-02 15:16:07
Writing the hello world program
In the following steps, you will build your first python program:
- Create an empty folder somewhere in your file system called chapter2. Once you have created the chapter2 folder, open up Atom and add the folder to the file tree by selecting File | Add Project Folder as follows:

- Navigate to the chapter2 folder that you just created and click OK.
- You should see the chapter2 folder in the file tree, which is usually on the left panel. If the tree is not there, you may need to show it by selecting View | Toggle Tree View:

- Within the chapter2 folder, create a new file called hello_world.py by right-clicking on the chapter2 folder from the file tree and selecting New File:

In general, you can use the file tree panel as a direct interface to create, delete, open, move and manage files and folders within the base directory.
- Open hello_world.py by clicking on the file in the file tree. A blank text editing tab should open up for the file. Type the following text:
print("Hello World!")
- Finally, save the file by selecting File | Save:

That's it! You've created your first program in Python! The next step is to execute the program.
推薦閱讀
- 數(shù)據(jù)掘金
- 菜鳥起飛系統(tǒng)安裝與重裝
- 運(yùn)動(dòng)控制系統(tǒng)
- RedHat Linux用戶基礎(chǔ)
- 啊哈C!思考快你一步
- Apache源代碼全景分析(第1卷):體系結(jié)構(gòu)與核心模塊
- Web璀璨:Silverlight應(yīng)用技術(shù)完全指南
- PHP求職寶典
- Access 2007數(shù)據(jù)庫入門與實(shí)例應(yīng)用金典
- QTP自動(dòng)化測試實(shí)踐
- 單片機(jī)原理、接口及應(yīng)用系統(tǒng)設(shè)計(jì)
- Flash CS3全程指南
- 從虛擬化到云計(jì)算
- 局域網(wǎng)組建與管理技術(shù)詳解
- 數(shù)據(jù)存儲(chǔ)備份與災(zāi)難恢復(fù)