SlideShare uma empresa Scribd logo
1 de 51
[object Object],酷學園教學團隊  雨蒼
個人背景 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Python 的核心思維 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Python 的 優點 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Python 的缺點 ,[object Object],[object Object],[object Object],[object Object]
誰在用 Python ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
執行第一個程式 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
如何寫出第一個程式 ,[object Object],[object Object]
[object Object]
為什麼要加上雙引號 (") ‏ ,[object Object],[object Object],[object Object]
[object Object]
數值 (numbers) ‏ ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
數值運算與相關工具 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
字串 (string) ‏ ,[object Object],[object Object],[object Object],[object Object]
字串運算與相關工具 ,[object Object],[object Object],[object Object],[object Object]
Slice 0 1 2 3 4 5 [: :] [  起使:終止:步進  ] E C I L S
List ,[object Object],[object Object]
List 運算與相關工具 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Tuple ,[object Object],[object Object]
辭典 (Dictionary) ‏ ,[object Object],[object Object],[object Object],[object Object]
辭典運算與相關工具 ,[object Object],[object Object]
檔案存取 ,[object Object],[object Object]
[object Object]
使用 pickle 直接儲存物件 ,[object Object]
[object Object],[object Object]
為什麼 Python 支援動態定型? ,[object Object],[object Object],[object Object],[object Object],[object Object]
[ 'abc' , [(1, 2), ([3],4)],'def'] ' abc ' (1, 2) ([3],4) 'd ef ' 1 2 [3] 4 3
共用參照值與複製 ,[object Object],[object Object]
小型整數或字串會重複使用 ,[object Object],[object Object]
[object Object]
[object Object]
案例:兩個 if 的故事 ,[object Object],{ { { } } } }
Python 語法 ,[object Object],[object Object],[object Object],[object Object]
if ,[object Object],[object Object],[object Object]
兩個 if 的故事 -Python 篇 ,[object Object],else: statement2   else:   statement2
[object Object]
為什麼我一定要這樣寫程式? ,[object Object],[object Object],[object Object]
While ,[object Object],[object Object],[object Object]
For ,[object Object],[object Object],[object Object]
函式 ,[object Object],[object Object],[object Object]
函式 引數 廣域變數 檔案 / 串流 區域變數 Return 可變更引數 廣域變數 檔案 / 串流 輸入 輸出
 
模組 ,[object Object],[object Object],[object Object]
 
[object Object]
[object Object],[object Object],[object Object],[object Object]
網路資源 ,[object Object],[object Object],[object Object]
Python 的核心思維 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
 

Mais conteúdo relacionado

Mais procurados (11)

Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿
 
step by step to use LINE Notify - 20190527
step by step to use LINE Notify - 20190527step by step to use LINE Notify - 20190527
step by step to use LINE Notify - 20190527
 
Shell脚本
Shell脚本Shell脚本
Shell脚本
 
中心教员Java面试题1
中心教员Java面试题1中心教员Java面试题1
中心教员Java面试题1
 
Python speed up with numba
Python speed up with numbaPython speed up with numba
Python speed up with numba
 
sed -- A programmer's perspective
sed -- A programmer's perspectivesed -- A programmer's perspective
sed -- A programmer's perspective
 
偷偷學習 Python3
偷偷學習 Python3偷偷學習 Python3
偷偷學習 Python3
 
Rpi 實作bt7
Rpi 實作bt7Rpi 實作bt7
Rpi 實作bt7
 
03 串起你的數據
03 串起你的數據03 串起你的數據
03 串起你的數據
 
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VMCompiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
 
3 Python开发风格与建议
3 Python开发风格与建议3 Python开发风格与建议
3 Python开发风格与建议
 

Semelhante a Python Basic

Python 入门
Python 入门Python 入门
Python 入门
kuco945
 
数据处理算法设计要点
数据处理算法设计要点数据处理算法设计要点
数据处理算法设计要点
thinkinlamp
 
數位出版2.0 it
數位出版2.0 it數位出版2.0 it
數位出版2.0 it
志賢 黃
 
Py ladies 0928
Py ladies 0928Py ladies 0928
Py ladies 0928
Yen_CY
 
1 C入門教學
1  C入門教學1  C入門教學
1 C入門教學
Sita Liu
 
OpenWebSchool - 02 - PHP Part I
OpenWebSchool - 02 - PHP Part IOpenWebSchool - 02 - PHP Part I
OpenWebSchool - 02 - PHP Part I
Hung-yu Lin
 

Semelhante a Python Basic (20)

Python 入门
Python 入门Python 入门
Python 入门
 
ajax_onlinemad
ajax_onlinemadajax_onlinemad
ajax_onlinemad
 
getPDF.aspx
getPDF.aspxgetPDF.aspx
getPDF.aspx
 
getPDF.aspx
getPDF.aspxgetPDF.aspx
getPDF.aspx
 
[系列活動] Python 爬蟲實戰
[系列活動] Python 爬蟲實戰[系列活動] Python 爬蟲實戰
[系列活動] Python 爬蟲實戰
 
数据处理算法设计要点
数据处理算法设计要点数据处理算法设计要点
数据处理算法设计要点
 
Vim get start_1.0
Vim get start_1.0Vim get start_1.0
Vim get start_1.0
 
Learning python in the motion picture industry by will zhou
Learning python in the motion picture industry   by will zhouLearning python in the motion picture industry   by will zhou
Learning python in the motion picture industry by will zhou
 
數位出版2.0 it
數位出版2.0 it數位出版2.0 it
數位出版2.0 it
 
《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿
 
Go语言: 互联网时代的C
Go语言: 互联网时代的CGo语言: 互联网时代的C
Go语言: 互联网时代的C
 
Ruby程式語言入門導覽
Ruby程式語言入門導覽Ruby程式語言入門導覽
Ruby程式語言入門導覽
 
Py ladies 0928
Py ladies 0928Py ladies 0928
Py ladies 0928
 
1 C入門教學
1  C入門教學1  C入門教學
1 C入門教學
 
講義
講義講義
講義
 
Vim hacks
Vim hacksVim hacks
Vim hacks
 
SCJP ch16
SCJP ch16SCJP ch16
SCJP ch16
 
02 和電腦對話
02 和電腦對話02 和電腦對話
02 和電腦對話
 
OpenWebSchool - 02 - PHP Part I
OpenWebSchool - 02 - PHP Part IOpenWebSchool - 02 - PHP Part I
OpenWebSchool - 02 - PHP Part I
 
Javascript Training
Javascript TrainingJavascript Training
Javascript Training
 

Python Basic

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.  
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17. Slice 0 1 2 3 4 5 [: :] [ 起使:終止:步進 ] E C I L S
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28. [ 'abc' , [(1, 2), ([3],4)],'def'] ' abc ' (1, 2) ([3],4) 'd ef ' 1 2 [3] 4 3
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42. 函式 引數 廣域變數 檔案 / 串流 區域變數 Return 可變更引數 廣域變數 檔案 / 串流 輸入 輸出
  • 43.  
  • 44.
  • 45.  
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.  
  • 51.