也許你會認為英文是電腦的標准語言, 要學電腦就要學英文, 因此不必為了那些又想學寫程式但又不想學英文的懶鬼操心。 然而學英文是要的,但最好別從電腦程式中來學, 因為編程語言和英文自然語言很不一樣。
周蟒 (zhpy) 讓你可以使用純中文句子(繁體或簡體)來編寫 Python 語言程式。
因為 AjaxMind 的工作,必需暫時告一段落,而且已經可透過 AjaxMind 產出投影片,所以先釋出一個版本 AjaxMind-0.1 。
IE 和 Firefox 1.5 開始,任何 element 只要設定 tabindex 這個 attribute 後,都自動變成 key-navigable ,能接受 focus 。這應該是媽祖託夢,雖然這個主意起自於萬惡、亂搞的 IE 。
Guido van Rossum Python Software Foundation Email: docs@python.org Fred L. Drake, Jr., editor Release 2.5 19th September, 2006
Python入門文件
無論妳只是個電腦初學者或是個有經驗的程式設計師, 這本書都能協助妳學習 Python 程式語言. 本書是對照英文版, 並在簡體中文版的基礎上, 針對慣用語, 與原翻譯者理解不同處, 還有原文的改進之處進行正體中文版翻譯.
Python 語言雖然很容易, 但彈性大的語言卻頗不容易教, 因為可以入手的點實在太多了. 這本 Byte of Python 是我看過講 Python 語言講得最簡單清楚的一本電子書. 這個網站平台允許讀者直接在文章旁加入的評論
分享你的 Django code snippet!
這些只是建議性原則,將日常遇到的原則問題和解決方法表列。曾在別人的 blog 看到有人提起這篇 memo,表示無法了解規則背後的理由。規則陳述句會盡量精簡,所以並不是每個人都可以看懂。也許像推背圖,事情發生時就會晃然大悟,原來如此 :p 當然,這個 memo 不像推背圖精深、博大。
Mercurytide 製作了一份Django 0.95+svn 版的小抄, 裏面包含了Template的內建tags跟filters, ORM model裡的Field Type/Options,跟meta, 小抄裡用了圖型標示,讓人能一目瞭然, 分類很清楚, 製作也很精緻. 值得django user印出來參考.
我發現,寫程式速度往往受限於打字速度啊。XD
Test: * CodeIgniter on PHP * Catalyst on Perl * Django on Python * RubyOnRails on Ruby * Symfony on PHP * TurboGears on Python
# Django has won over the nearest competitors with the approximate triple superiority. # Second and third places have divided TurboGears and RoR 1.1.6, because they are equally fast, but behave differently at different loads, overtaking each other. RoR 1.2.1 falling of productivity in 2-4 times in comparison with 1.1.6 version.
总是看到有人对 python 中的 method 和 function 之间关系的困惑,其实初学 python 时我也困惑过,不过现在自认为对这个问题还是基本清楚了 ;-)。
寫網頁程式時,要輸出到網頁上的資料常常會帶有 HTML 標籤,譬如 blahblah,或者資料內容「像」HTML 標籤,例如 一通。在 Django template 中,提供了一個 filter 來把字串裡的 HTML 標籤相關字碼轉成 HTML entity。這個 filter 就是 escape。
對 Python 的 boolean expression 與 conditional expression 作點探討與整理。
向 C 語言的使用者介紹 Python 語言.
TurboGears 好用的地方並不是在它堆砌了許多開源的 python web 專案(如不曾成功過的 subway),而是真正提出了一個整合這些 python web 開發資源的方法. 並提供相當具有 python 風格(pythonic) 的使用方式.
Reading and writing Unicode files from Python is simple. Use codecs.open() and specify the encoding.
That's great, so I can make every file readed as Unicode string
Python has no conditional operator, but you can simulate one with the form val = (boolean_test and true_return) \ or false_return
? true : false 的 python 版本
This page is devoted to various tips and tricks that help improve the performance of your Python programs. Wherever the information comes from someone else, I've tried to identify the source.
A programmer can be significantly more productive in Python than in Java. How much more productive? The most widely accepted estimate is 5-10 times. On the basis of my own personal experience with the two languages, I agree with this estimate.
好,對於開始學 Python 的人有助益
學任一種語言,要說得道地,關鍵是讓自己融入該語言的風格、特色中,體會語言社群的風土,知道其慣用法。 既然 Python 寫的 code 有 executable pseudo code 的美稱,想寫出 Pythonic 的 code ,當然要站在一定的高度,讓寫出來的 code 夠 pseudo..
不過說要學個語言不是那麼容易,雖然說比起英語德語加法語來說,學個程式語言比較起來容易太多了,可是沒有個入門文件也是不行的。上網一查「Python」,結果台灣陣亡,第一頁最有用的就是第一筆: Python 教學文件。這可以位在香港的,看來我以前沒學 Python 也不能怪自己,資源少的可憐的感覺,隨隨便便要找個論壇都還來個 404 。
自己推一下,做個記錄。
a free book about Django
「PHP 會被 Ruby 殺死嗎?」 Stefan 認為簡單的答案是「不」。
語言殺語言的話,一定是用死亡筆記本吧。
TurboGears -- 提供网页前端到后端整合的网站框架 python 上有无数网页开发模组可选择. 随着选择的增加, 要挑选合适的模组会花上开发者宝贵的时间精力, 众多选项的负面效果开始让 python 开发者感到喘不过气.
This book is about the fundamentals of data structures and algorithms.
Dive Into Python is a Python book for experienced programmers. You can buy a printed copy, read it online, or download it in a variety of formats. It is also available in multiple languages.