Top Banner
Introduction to Python and Programming Imet
16

Introduction to python

Nov 16, 2014

Download

Documents

imetliao

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to python

Introduction to Python and ProgrammingImet

Page 2: Introduction to python

Why do I Learn Program?

• 實用層面:• ”Programmers are just like witches today, and program is

their superpower.”• web, app, 管理資訊系統• 會計報表 , model, 醫療 , 音樂 , 電影• 社會 , 公益 , 行銷模式 • 學會跟電腦相處的方式。

Page 3: Introduction to python

Why do I Learn Program?

• 對我而言得到的是:• 學會一種準確的 (logic) 思考與敘述模式• 了解計算機世界• 學習「自我學習」• 真的很好玩• 黑客精神:相信自己擁有創造力!

• 是否人人都需要會寫程式?• 不,但試試也決不會有損失

Page 4: Introduction to python

Philosophy

• 看待世界的方式

Page 5: Introduction to python

The “Computer and Human” Problem

• Functionalism believe human is a kind of computer( 得到一些 input ,處理狀況、然後做出反應 ), and we are programed by god.

• 第一層問題在於:電腦的思考方式是否跟人類一樣?• 答案非常明顯:一點都不一樣,我們的思考比較高等。

Page 6: Introduction to python

Human vs Computer

• 人類 (natural language) :• 想像力• 聯想能力• 詞彙豐富、沒有限制、彼此容易溝通

• 電腦 (Programming language) :• 邏輯計算• 數學• 精細準確快速• 有限制

Page 7: Introduction to python

The “Computer and Human” Problem

• 更高的階層問題是:人類到底有沒有所謂的靈魂(mind) ?靈魂到底是什麼?

• 電腦能夠知道,我是獨立的我嗎?• 電腦聽到音樂會說” WOW” 嗎?• What is 美 ?• What is Love?

Page 8: Introduction to python

The “Computer and Human” Problem

• 電腦能否跟人類一樣思考?我們能不能賦予電腦跟我們一樣的靈魂 (mind) ?

• 人工智慧 (AI) 科學家相信可以• 機器人學 (Robotic) 科學家也相信• 哲學家大概不相信 XDD• 人類學家應該也不相信 ( 吧 )

Page 9: Introduction to python

回到主題Python and Program

Page 10: Introduction to python

Why Do I Do This?

• 有些人跟我說想要學習寫程式、也拿出了會認真寫作業的態度 XD ( 非常期待喔 >.^)

• 我最近也想要學習 Python 這個語言,有朋友給我建議可以寫一個幫助別人學習語言的 Project

• 喜歡把資訊整理起來,用我的方式重新說一次故事

Page 11: Introduction to python

我們該如何進行

• 設定為:給完全不會寫程式和完全不知道電腦世界如何運作的麻瓜們,所以會非常容易、請別害怕。

• 基本上,每次我會錄影約 10~20 分鐘,包含三個section :• 1. 對於電腦世界的一些介紹 • 2. Python• 3. 小驚喜

• 每次需要約 1 小時寫作業, deadline 設定為 2 個禮拜,目前計畫四次,以學會使用 API 寫出運算為目標,至少要到河內塔問題 XD

Page 12: Introduction to python

其他事項

• 請把作業寄給我 [email protected]• 作業有問題可以直接敲我,就算是完全沒進度、還是

可以問我,也能在部落格底下匿名留言。• 其他東西放在我的 logdown部落格

http://imet.logdown.com• 如果有任何一個人交作業,我就會錄下次影片。但如果不想交作業、或沒時間寫作業,請別感到 sorry ,可以理解這種狀況,告知一聲即可。

• 每次錄影都會有一個回饋單,請大家踴躍填寫喔!• 本次 http://goo.gl/gnbhp5

Page 13: Introduction to python

What is Python?

• Philosophy :「優雅」、「明確」、「簡單」• 高階程式語言• 進入門檻較低• Berkeley “Pacman Project”

• 其他請自行探索

Page 14: Introduction to python

Let’s Start

• Download Python.• Set up environment.• Test command line.• (Download SublimeText.) => optional• Program first code: hello world!• Use command line to run it.

Page 15: Introduction to python

Homework Time!

• Homework:

Page 16: Introduction to python

Easter Egg

• Dream Afar• RiboGreeting• Fruno mini