Python@TW: 會眾| IRC| Planet| 郵件列表| 聯絡我們
修訂版 1 和 2 的差異如下:
2012-01-05 00:46:19 修訂第 1 版
大小: 459
編輯者: keitheis
說明: 加入 Thinker 的手刻四行 hello world
2012-01-05 00:58:56 修訂第 2 版
大小: 669
編輯者: keitheis
說明: "Learn Python The Hard Way" by Zed A. Shaw: Exercises 50, 51, and 52 teach you how to write a web application game.
這個顏色代表刪除的 這個顏色代表增加的
行號 1: 行號 1:
供初學者參考: [[http://learnpythonthehardway.org/book/|"Learn Python The Hard Way" by Zed A. Shaw|target="_blank"]] 的 execise 50、51 及 52 教你如何加入寫網站應用程式(Web Application)的世界。


初學者僅供參考:

"Learn Python The Hard Way" by Zed A. Shaw 的 execise 50、51 及 52 教你如何加入寫網站應用程式(Web Application)的世界。

初學者僅供參考:

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 編輯的)