Python@TW: 會眾| IRC| Planet| 郵件列表| 聯絡我們
修訂版 8 和 10 的差異如下: (間隔 2 版)
2012-01-05 02:20:30 修訂第 8 版
大小: 1931
編輯者: keitheis
說明:
2012-01-05 02:39:51 修訂第 10 版
大小: 2792
編輯者: keitheis
說明: 參考資料加入官網的 Web Frameworks for Python
這個顏色代表刪除的 這個顏色代表增加的
行號 27: 行號 27:
[[http://learnpythonthehardway.org/book/|"Learn Python The Hard Way" by Zed A. Shaw|target="_blank"]] 的 execise 50、51 及 52 教你如何加入寫網站應用程式(Web Application)的世界  * [[http://wiki.python.org/moin/WebFrameworks|Web Frameworks for Python|target="_blank"]] Python 官網 http://wiki.python.org 上的參考資料。
 * [[http://learnpythonthehardway.org/book/|"Learn Python The Hard Way" by Zed A. Shaw|target="_blank"]] 的 execise 50、51 及 52 教你如何加入寫網站應用程式(Web Application)的世界
 * 關於網站框架的熱門度參考:
    * [[http://www.quora.com/Python-Web-Frameworks/What-is-the-ratio-of-projects-using-Django-compared-to-other-Python-frameworks-Pylons-Pyramid-Flask-Tornado-etc-Is-where-statistic-about-percentage-of-Django-based-projects|Python Web Frameworks: What is the ratio of projects using Django compared to other Python frameworks (Pylons/Pyramid/Flask/Tornado/etc.). Is where statistic about percentage of Django based projects? - Quora|target="_blank"]],2011.12
    * [[http://www.bryceboe.com/2011/02/21/using-stackoverflows-api-to-find-the-top-web-frameworks/|Using StackOverflow’s API to Find the Top Web Frameworks|target="_blank"]] by Bryce Boe,2011.02

如何開始寫網站應用程式(Web Application)

如果你是 Python 初學者,可先參考 Python/第一次用就上手

如果你是網站開發(Web Development)初學者,可參考 Wikipedia 上的分類:網頁技術分類:網站開發,或用關鍵字「HTML CSS Javascript」搜尋相關資料;當然,這只是網站開發的冰山一角。

通常你可以針對自身的需求、佈署環境、工作環境與團隊來比較各個網站框架(Web Framework),挑一個適合你的選擇。就算真的沒有符合你需求的,自己動手寫一個也不會太難。這也許是人說:「Python 的 Web Framework 比它的關鍵字還多。」的原因。

如果你只是想試一試,沒有什麼需求可言,那就隨便挑一個順眼的。

有名的 Python 網站框架

次有名的 Python 網站框架

參考資料

禁(?)技

僅供參考:

Thinker手刻四行 hello world:

   1     import BaseHTTPServer
   2     class handler(BaseHTTPServer.BaseHTTPRequestHandler): pass
   3     handler.do_GET = lambda x: x.wfile.write('Hello world')
   4     BaseHTTPServer.HTTPServer(('', 8000), handler).serve_forever()

註:行數通常不是選擇 Web Framework 的條件;但少行勝多行還是很棒。

Python/第一次寫Web就上手 (上次是 58-115-33-84 在 2023-01-08 22:40:20 編輯的)