Python 第一步

Harry
Mar 27, 2021

--

先去裝IDE

所謂IDE就是Integrated Development Environment 的簡稱,就是幫助你開發編輯程式的一個東東。

用這麼久,覺得Pycharm最好用,載點在這:

點Download進去

選Community來下載,開源版本,免費的。

載好之後,運行,基本上就下一步點起來,直到出現這個畫面,基本上勾這三個。

然後下一步到這邊,選這個Finish。

同意啦,哪次不同意。

這邊看你要不要傳錯誤訊息給他們公司改善,我是選Don’t send。

然後剛進來就是Create New Project,(創建新專案)

取名就叫lesson1吧。 先照預設的選就OK了!然後點選右下Create

第一次近來有這個Tip 每日一個小技巧,我覺得很煩,所以就勾選Don’t show tips 然後就Close掉了。

然後選左邊那個venv資料夾,對他滑鼠右鍵。

New>python file

然後為檔案取名,就叫hello_world吧!

進來後快速打入第一個程式碼

print("hello world")

然後右鍵畫面中間的程式碼區黑色地方,選擇Run hello_world

第一個Python建置到執行 就完成了!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Harry
Harry

No responses yet

Write a response