Enviar pesquisa
Carregar
從 REPL 到 IDE
•
4 gostaram
•
2,342 visualizações
Justin Lin
Seguir
《Python 3.5 技術手冊》投影片第 2 章
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 27
Baixar agora
Baixar para ler offline
Recomendados
open() 與 io 模組
open() 與 io 模組
Justin Lin
Python 起步走
Python 起步走
Justin Lin
《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿
Justin Lin
型態與運算子
型態與運算子
Justin Lin
從 REPL 到 IDE
從 REPL 到 IDE
Justin Lin
1. Python起步走
1. Python起步走
Justin Lin
Python 起步走
Python 起步走
Justin Lin
流程語法與函式
流程語法與函式
Justin Lin
Recomendados
open() 與 io 模組
open() 與 io 模組
Justin Lin
Python 起步走
Python 起步走
Justin Lin
《Python 3.5 技術手冊》第二章草稿
《Python 3.5 技術手冊》第二章草稿
Justin Lin
型態與運算子
型態與運算子
Justin Lin
從 REPL 到 IDE
從 REPL 到 IDE
Justin Lin
1. Python起步走
1. Python起步走
Justin Lin
Python 起步走
Python 起步走
Justin Lin
流程語法與函式
流程語法與函式
Justin Lin
12, string
12, string
ted-xu
Python 2-基本語法
Python 2-基本語法
阿Samn的物理課本
Py ladies 0928
Py ladies 0928
Chia-Yi Yen
Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿
jiannrong
流程語法與函式
流程語法與函式
Justin Lin
Python系列3
Python系列3
數真 蔡
Python系列4
Python系列4
數真 蔡
函数调用关系工具-2011-孙光福
函数调用关系工具-2011-孙光福
Wu Liang
資料永續與交換
資料永續與交換
Justin Lin
從模組到類別
從模組到類別
Justin Lin
Coreseek/Sphinx 全文检索实践指南
Coreseek/Sphinx 全文检索实践指南
HonestQiao
[系列活動] Python 程式語言起步走
[系列活動] Python 程式語言起步走
台灣資料科學年會
從模組到類別
從模組到類別
Justin Lin
2. 從 REPL 到 IDE
2. 從 REPL 到 IDE
Justin Lin
Python系列1
Python系列1
數真 蔡
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Li Hsuan Hung
简单Pthon教程
简单Pthon教程
junjun chen
Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式
ZongYing Lyu
Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業
ZongYing Lyu
[圣思园][Java SE]Jdk5
[圣思园][Java SE]Jdk5
ArBing Xie
例外處理
例外處理
Justin Lin
資料結構
資料結構
Justin Lin
Mais conteúdo relacionado
Mais procurados
12, string
12, string
ted-xu
Python 2-基本語法
Python 2-基本語法
阿Samn的物理課本
Py ladies 0928
Py ladies 0928
Chia-Yi Yen
Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿
jiannrong
流程語法與函式
流程語法與函式
Justin Lin
Python系列3
Python系列3
數真 蔡
Python系列4
Python系列4
數真 蔡
函数调用关系工具-2011-孙光福
函数调用关系工具-2011-孙光福
Wu Liang
資料永續與交換
資料永續與交換
Justin Lin
從模組到類別
從模組到類別
Justin Lin
Coreseek/Sphinx 全文检索实践指南
Coreseek/Sphinx 全文检索实践指南
HonestQiao
[系列活動] Python 程式語言起步走
[系列活動] Python 程式語言起步走
台灣資料科學年會
從模組到類別
從模組到類別
Justin Lin
2. 從 REPL 到 IDE
2. 從 REPL 到 IDE
Justin Lin
Python系列1
Python系列1
數真 蔡
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Li Hsuan Hung
简单Pthon教程
简单Pthon教程
junjun chen
Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式
ZongYing Lyu
Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業
ZongYing Lyu
[圣思园][Java SE]Jdk5
[圣思园][Java SE]Jdk5
ArBing Xie
Mais procurados
(20)
12, string
12, string
Python 2-基本語法
Python 2-基本語法
Py ladies 0928
Py ladies 0928
Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿
流程語法與函式
流程語法與函式
Python系列3
Python系列3
Python系列4
Python系列4
函数调用关系工具-2011-孙光福
函数调用关系工具-2011-孙光福
資料永續與交換
資料永續與交換
從模組到類別
從模組到類別
Coreseek/Sphinx 全文检索实践指南
Coreseek/Sphinx 全文检索实践指南
[系列活動] Python 程式語言起步走
[系列活動] Python 程式語言起步走
從模組到類別
從模組到類別
2. 從 REPL 到 IDE
2. 從 REPL 到 IDE
Python系列1
Python系列1
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
简单Pthon教程
简单Pthon教程
Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業
[圣思园][Java SE]Jdk5
[圣思园][Java SE]Jdk5
Destaque
例外處理
例外處理
Justin Lin
資料結構
資料結構
Justin Lin
網站系統安全及資料保護設計認知
網站系統安全及資料保護設計認知
Justin Lin
OpenSCAD Workshop
OpenSCAD Workshop
Justin Lin
Python
Python
Shivam Gupta
並行與平行
並行與平行
Justin Lin
除錯、測試與效能
除錯、測試與效能
Justin Lin
類別的繼承
類別的繼承
Justin Lin
Python Programming Essentials - M22 - File Operations
Python Programming Essentials - M22 - File Operations
P3 InfoTech Solutions Pvt. Ltd.
Python 3 Programming Language
Python 3 Programming Language
Tahani Al-Manie
Python Programming Essentials - M44 - Overview of Web Development
Python Programming Essentials - M44 - Overview of Web Development
P3 InfoTech Solutions Pvt. Ltd.
資料永續與交換
資料永續與交換
Justin Lin
PyCon Taiwan 2013 Tutorial
PyCon Taiwan 2013 Tutorial
Justin Lin
3D 之邏輯與美感交會 - OpenSCAD
3D 之邏輯與美感交會 - OpenSCAD
Justin Lin
進階主題
進階主題
Justin Lin
常用內建模組
常用內建模組
Justin Lin
初學R語言的60分鐘
初學R語言的60分鐘
Chen-Pan Liao
Destaque
(17)
例外處理
例外處理
資料結構
資料結構
網站系統安全及資料保護設計認知
網站系統安全及資料保護設計認知
OpenSCAD Workshop
OpenSCAD Workshop
Python
Python
並行與平行
並行與平行
除錯、測試與效能
除錯、測試與效能
類別的繼承
類別的繼承
Python Programming Essentials - M22 - File Operations
Python Programming Essentials - M22 - File Operations
Python 3 Programming Language
Python 3 Programming Language
Python Programming Essentials - M44 - Overview of Web Development
Python Programming Essentials - M44 - Overview of Web Development
資料永續與交換
資料永續與交換
PyCon Taiwan 2013 Tutorial
PyCon Taiwan 2013 Tutorial
3D 之邏輯與美感交會 - OpenSCAD
3D 之邏輯與美感交會 - OpenSCAD
進階主題
進階主題
常用內建模組
常用內建模組
初學R語言的60分鐘
初學R語言的60分鐘
Semelhante a 從 REPL 到 IDE
Python01
Python01
俊杰 李
Learn python 2 - Real World Case
Learn python 2 - Real World Case
Chia-Hao Tsai
Adorable python
Adorable python
Rhythm Sun
Python简明教程
Python简明教程
ingong
建置Python開發環境
建置Python開發環境
吳錫修 (ShyiShiou Wu)
執行緒與並行API
執行緒與並行API
Justin Lin
Web scraping入門1
Web scraping入門1
兆欽 丘
建置Python開發環境
建置Python開發環境
吳錫修 (ShyiShiou Wu)
Python 01 Introduction
Python 01 Introduction
吳錫修 (ShyiShiou Wu)
Java Tutorial:Learn Java in 06:00:00
Java Tutorial:Learn Java in 06:00:00
Justin Lin
Java Build Tool course in 2011
Java Build Tool course in 2011
Ching Yi Chan
Java SE 7 技術手冊投影片第 10 章 - 輸入輸出
Java SE 7 技術手冊投影片第 10 章 - 輸入輸出
Justin Lin
Tiptop gp 5.1 setup_instructions
Tiptop gp 5.1 setup_instructions
guest994aeb5
0507 coding lesson
0507 coding lesson
YU-TING LIN
Oracle Security 101
Oracle Security 101
Dahui Feng
Continuous Delivery Workshop with Ansible x GitLab CI
Continuous Delivery Workshop with Ansible x GitLab CI
Chu-Siang Lai
用Cython封装c++代码为python模块的一点经验
用Cython封装c++代码为python模块的一点经验
Leo Zhou
8. open() 與 io 模組
8. open() 與 io 模組
Justin Lin
open() 與 io 模組
open() 與 io 模組
Justin Lin
Continuous Delivery with Ansible x GitLab CI (2e)
Continuous Delivery with Ansible x GitLab CI (2e)
Chu-Siang Lai
Semelhante a 從 REPL 到 IDE
(20)
Python01
Python01
Learn python 2 - Real World Case
Learn python 2 - Real World Case
Adorable python
Adorable python
Python简明教程
Python简明教程
建置Python開發環境
建置Python開發環境
執行緒與並行API
執行緒與並行API
Web scraping入門1
Web scraping入門1
建置Python開發環境
建置Python開發環境
Python 01 Introduction
Python 01 Introduction
Java Tutorial:Learn Java in 06:00:00
Java Tutorial:Learn Java in 06:00:00
Java Build Tool course in 2011
Java Build Tool course in 2011
Java SE 7 技術手冊投影片第 10 章 - 輸入輸出
Java SE 7 技術手冊投影片第 10 章 - 輸入輸出
Tiptop gp 5.1 setup_instructions
Tiptop gp 5.1 setup_instructions
0507 coding lesson
0507 coding lesson
Oracle Security 101
Oracle Security 101
Continuous Delivery Workshop with Ansible x GitLab CI
Continuous Delivery Workshop with Ansible x GitLab CI
用Cython封装c++代码为python模块的一点经验
用Cython封装c++代码为python模块的一点经验
8. open() 與 io 模組
8. open() 與 io 模組
open() 與 io 模組
open() 與 io 模組
Continuous Delivery with Ansible x GitLab CI (2e)
Continuous Delivery with Ansible x GitLab CI (2e)
Mais de Justin Lin
Ch14 簡介 Spring Boot
Ch14 簡介 Spring Boot
Justin Lin
Ch13 整合 Spring MVC/Security
Ch13 整合 Spring MVC/Security
Justin Lin
Ch12 Spring 起步走
Ch12 Spring 起步走
Justin Lin
Ch11 簡介 JavaMail
Ch11 簡介 JavaMail
Justin Lin
Ch10 Web 容器安全管理
Ch10 Web 容器安全管理
Justin Lin
Ch09 整合資料庫
Ch09 整合資料庫
Justin Lin
Ch08 自訂標籤
Ch08 自訂標籤
Justin Lin
Ch07 使用 JSTL
Ch07 使用 JSTL
Justin Lin
Ch06 使用 JSP
Ch06 使用 JSP
Justin Lin
Ch05 Servlet 進階 API、過濾器與傾聽器
Ch05 Servlet 進階 API、過濾器與傾聽器
Justin Lin
Ch04 會話管理
Ch04 會話管理
Justin Lin
Ch03 請求與回應
Ch03 請求與回應
Justin Lin
Ch02 撰寫與設定 Servlet
Ch02 撰寫與設定 Servlet
Justin Lin
CH1. 簡介 Web 應用程式
CH1. 簡介 Web 應用程式
Justin Lin
14. 進階主題
14. 進階主題
Justin Lin
13.並行、平行與非同步
13.並行、平行與非同步
Justin Lin
12. 除錯、測試與效能
12. 除錯、測試與效能
Justin Lin
11. 常用內建模組
11. 常用內建模組
Justin Lin
10. 資料永續與交換
10. 資料永續與交換
Justin Lin
9. 資料結構
9. 資料結構
Justin Lin
Mais de Justin Lin
(20)
Ch14 簡介 Spring Boot
Ch14 簡介 Spring Boot
Ch13 整合 Spring MVC/Security
Ch13 整合 Spring MVC/Security
Ch12 Spring 起步走
Ch12 Spring 起步走
Ch11 簡介 JavaMail
Ch11 簡介 JavaMail
Ch10 Web 容器安全管理
Ch10 Web 容器安全管理
Ch09 整合資料庫
Ch09 整合資料庫
Ch08 自訂標籤
Ch08 自訂標籤
Ch07 使用 JSTL
Ch07 使用 JSTL
Ch06 使用 JSP
Ch06 使用 JSP
Ch05 Servlet 進階 API、過濾器與傾聽器
Ch05 Servlet 進階 API、過濾器與傾聽器
Ch04 會話管理
Ch04 會話管理
Ch03 請求與回應
Ch03 請求與回應
Ch02 撰寫與設定 Servlet
Ch02 撰寫與設定 Servlet
CH1. 簡介 Web 應用程式
CH1. 簡介 Web 應用程式
14. 進階主題
14. 進階主題
13.並行、平行與非同步
13.並行、平行與非同步
12. 除錯、測試與效能
12. 除錯、測試與效能
11. 常用內建模組
11. 常用內建模組
10. 資料永續與交換
10. 資料永續與交換
9. 資料結構
9. 資料結構
從 REPL 到 IDE
1.
2.
2. 從 REPL
到 IDE • 學習目標 – 使用 REPL – 設定原始碼檔案編碼 – 基本模組與套件管理 – 認識 IDE 的使用
3.
使用 REPL • REPL(Read-Eval-Print
Loop,又稱為 Python Shell)
4.
5.
取得協助訊息
6.
7.
8.
9.
• 如果要離開 REPL
環境,可以執行 quit() 函式
10.
撰寫 Python 原始碼
11.
12.
13.
哈囉!世界! • 事物的複雜度不會憑空消失,只會從一個 事物轉移到另一個事物
14.
UTF-8 • Python 3
之後,python 直譯器預期的原 始碼檔案編碼必須是 UTF-8
15.
• 使用註解設定編碼資訊 • 在
Python 原始碼檔案中,# 開頭代表這 是一行註解
16.
• 到其他的編碼設定方式 • python
直譯器只要在註解中看到 coding=<encoding name> 或者 coding: <encoding name> 出現 # -*- coding: Big5 -*- # vim: set fileencoding=Big5 :
17.
簡介模組 • 每個 .py
檔案本身就是一個模組 • 直接重用先前撰寫好的 hello2.py 檔案
18.
• Python 本身提供有標準程式庫
19.
• 如果有多個模組需要 import,除了逐行 import
之外,也可以在單一行中使用逗號 「,」來區隔模組 • 在 __builtins__模組中的函式、類別等 名稱,都可以不用 import 直接取用,而 且不用加上模組名稱作為前置 import sys, email
20.
設定 PYTHONPATH • 可以設定
PYTHONPATH 環境變數來解決這 個問題:
21.
22.
• 想要動態地管理模組的尋找路徑, 也可以 透過程式變更
sys.path 的內容來達到
23.
使用套件管理模組 • 模組也應該分門別類加以放置 • 一定要有一個__init__.py
檔案,該資料夾 才會被視為一個套件 • 在套件的進階管理中,__init__.py 中其實 也可以撰寫程式
24.
• 套件名稱會成為名稱空間的一部份 • 可以建立多層次的套件,每個擔任套件的 資料夾與子資料夾中,各要有一個 __init__.py
25.
import as、from import •
import as • from import
26.
• 如果有多個名稱想要直接匯入目前模組, 除了逐行 from
import 之外,也可以在 單一行中使用逗號「,」來區隔 • 更偷懶一點(不建議)
27.
使用IDE • PyCharm(www.jetbrains.com/pycharm/) • PyDev(www.pydev.org/) •
Komodo IDE(komodoide.com/) • Spyder (code.google.com/archive/p/spyderlib/) • WingIDE(wingware.com/) • NINJA-IDE(www.ninja-ide.org/) • Python Tools for Visual Studio (pytools.codeplex.com/)
Baixar agora