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
Learn Python in 30 min - 1cmj
1
Python - Programming Language
2
‧ 直譯式程式語言 - 不需要編譯 (省時間)
‧ 直白的程式語言 - 所想即所得 (省時間)
‧ 豐富的程式語言 - 資源豐富 (省時間)
3
4
First Program - Hello World
5
Hello World
6
Hello World標準輸出:print
執⾏行 (輸出) Hello World
7
Hello World只是個註解:#
註解 (給⼈人/機器看的)
8
Hello World
只是個⽤用不到的變數
9
簡單吧~
10
來點複雜的∼
11
條件/輸入
12
條件/輸入縮排 (Indent) /範圍 (Scope)
縮排 (indent):⽤用來判斷範圍 (scope)
13
縮排
‧ 之前提過,Python 很好閱讀
‧ 跟其他程式語言不一樣,範圍 (scope) 使用縮排
‧ 可以少打兩個大括號 (Braces) => 省時間/好閱讀
‧ 比較一下∼
14
混亂 C 程式碼 (2013)http://www0.us.ioccc.org/2013/misaka/misaka.c