<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-850060029534274252</id><updated>2011-10-29T02:19:16.259-07:00</updated><category term='Philosophy'/><category term='ppt'/><category term='建模'/><category term='ReleaseNote'/><category term='zwds'/><category term='news'/><category term='tips'/><category term='orz'/><title type='text'>周蟒--中文Python程式語言部落</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8222233306147376785</id><published>2011-06-25T07:02:00.000-07:00</published><updated>2011-06-25T07:02:45.981-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒支援Python3!</title><content type='html'>今天參加完Pyctw 2011活動後，發佈了相容python3的&lt;a href="http://pypi.python.org/pypi/zhpy3/"&gt;周蟒3.0.0a1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;版本代號 Tusk (&lt;span class="Apple-style-span" style="background-color: #f9f9f9; font-family: sans-serif; font-size: 17px; line-height: 21px;"&gt;獠牙&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;http://pypi.python.org/pypi/zhpy3/&lt;br /&gt;&lt;br /&gt;可以在python3環境使用&lt;br /&gt;&lt;br /&gt;$ easy_install zhpy3 &lt;br /&gt;&lt;br /&gt;命令來安裝&lt;br /&gt;&lt;br /&gt;所有之前周蟒的範例都能執行&lt;br /&gt;&lt;br /&gt;http://code.google.com/p/zhpy/source/browse/#hg%2Fzhpy3%2Fexamples&lt;br /&gt;&lt;br /&gt;目前周蟒3.0.0a1版和原周蟒(2.x)相比，還不完整，目前的特性有&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;僅支援腳本執行&lt;/li&gt;&lt;li&gt;不支援匯入中文模組&lt;/li&gt;&lt;li&gt;不支援interpreter&lt;/li&gt;&lt;li&gt;不支援轉換成Python腳本&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;歡迎有興趣的人參與進來，學習python3的同時，也協助後進還不太懂英文卻想學寫程式的小朋友 :)&lt;br /&gt;http://code.google.com/p/zhpy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8222233306147376785?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8222233306147376785/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8222233306147376785' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8222233306147376785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8222233306147376785'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2011/06/python3.html' title='周蟒支援Python3!'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7139209721278112374</id><published>2010-01-13T19:35:00.000-08:00</published><updated>2010-01-13T20:14:12.927-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='建模'/><title type='text'>溫度換算（流程導向與物件導向）</title><content type='html'>最近天氣冷到爆。身在國外的同事問台灣這邊的氣溫。由於法國那邊報出來的溫度是用華氏（F）來表示，而在台灣這是用攝氏（C）來表示，所以報給他的溫度得要先轉換一下再告訴他。&lt;br /&gt;&lt;br /&gt;剛好想起來很久沒寫文章了，就拿這個狀況題，來當做解釋流程導向與物件導向不同的例子吧 :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;首先把國小物理課中所教的溫度計算轉換式寫出來，就是&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;華氏溫度 = 攝氏溫度 * 9 / 5 + 32&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;上面這段是正確的周蟒程式，打開周蟒直譯器就可以直接得到運算結果 :) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;若是要重用這個運算，寫成程式碼式很好的方式。如果套用流程導向方法來寫程式，就是包成一個函式來用：&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;定義 轉換成華氏溫度(攝氏溫度值):&lt;br /&gt;    返回 攝氏溫度值 * 9 / 5 +32&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;在使用時，只要呼叫&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;華氏溫度 = 轉換成華氏溫度(攝氏溫度值)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;就可以得到結果。&lt;br /&gt;&lt;br /&gt;如果是套用物件導向方法，則是把上述的函式跟提供的值包在一起，可以這麼寫：&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;類別 攝氏溫度(物件):&lt;br /&gt;    定義 __初始化__(我, 溫度值):&lt;br /&gt;        攝氏溫度值 = 溫度值 &lt;br /&gt;    定義 轉換成華氏溫度(我):&lt;br /&gt;        返回 攝氏溫度值 * 9 / 5 +32&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;使用時呼叫&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;現在溫度 = 攝氏溫度(9)&lt;br /&gt;華氏溫度 = 現在溫度.轉換成華氏溫度()&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;也可以得到相同結果。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7139209721278112374?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7139209721278112374/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7139209721278112374' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7139209721278112374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7139209721278112374'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2010/01/blog-post.html' title='溫度換算（流程導向與物件導向）'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3149739011005767387</id><published>2009-12-07T01:32:00.000-08:00</published><updated>2009-12-09T07:36:12.824-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.7.3 發佈</title><content type='html'>周蟒 1.7.3 (代號 審判) 已發佈。可前往網站下載, 或使用&lt;br /&gt;&lt;br /&gt;easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令來更新。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;版本控制改用 Mercurial，支持「自个儿」語句。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3149739011005767387?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3149739011005767387/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3149739011005767387' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3149739011005767387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3149739011005767387'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2009/12/173.html' title='周蟒 1.7.3 發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-1195557895957622927</id><published>2009-12-06T21:46:00.000-08:00</published><updated>2009-12-07T01:02:13.346-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>周蟒的新動態</title><content type='html'>&lt;div&gt;最近終於又可以抽出時間，來好好改進一下周蟒。&lt;/div&gt;&lt;div&gt;接下來預計的改動如下：&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;1. &lt;a href="http://code.google.com/p/support/wiki/ConvertingSvnToHg"&gt;轉換&lt;/a&gt;到使用 &lt;a href="http://www.selenic.com/mercurial/"&gt;Mercurial&lt;/a&gt; 分散式版本控制系統&lt;div&gt;2. 使用 &lt;a href="http://pypi.python.org/pypi/distribute"&gt;Contribute&lt;/a&gt; 來取代 &lt;a href="http://pypi.python.org/pypi/setuptools"&gt;SetupTools&lt;/a&gt; (Contribute 可以支援 Python 3)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;等轉換完之後，會開始試著完成使用 pyparsing3 來支援 python3 的工作。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Update: Contribute 在 Ubuntu 上因為會試圖取代 easy_install 命令，所以安裝時會失效&lt;/div&gt;&lt;div&gt;改來試 &lt;a href="http://pip.openplans.org/"&gt;pip&lt;/a&gt; 看看好了。&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-1195557895957622927?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/1195557895957622927/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=1195557895957622927' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/1195557895957622927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/1195557895957622927'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2009/12/blog-post.html' title='周蟒的新動態'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2644774680632110433</id><published>2009-08-16T21:17:00.000-07:00</published><updated>2009-08-16T21:45:51.842-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ppt'/><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>1.7.3 展望：Android 上跑周蟒</title><content type='html'>開發中的 1.7.3 版本初步已可以在 Android Scripting Environment (ASE) 上跑, 如圖所示&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_2xGPUuRo1sg/SojZ3hogKDI/AAAAAAAABBQ/nRBsBKH4t54/s1600-h/cosdroid.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 269px; height: 400px;" src="http://1.bp.blogspot.com/_2xGPUuRo1sg/SojZ3hogKDI/AAAAAAAABBQ/nRBsBKH4t54/s400/cosdroid.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5370782103583598642" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;目前可以在 android 上啟動 interpreter, 但該環境或介面還無法輸入或顯示中文.&lt;br /&gt;而且要直接在 Android 上跑 ooo.twpy/xxx.cnpy 還有些 encoding 問題, &lt;br /&gt;&lt;br /&gt;但可以透過 svn 中的 android.py (自行撰寫的 ASE android 函式庫 mockup)來在桌面端調試(example/droid/android.py)，&lt;br /&gt;直接在桌面端調試好後，用 "zhpy -p" 命令將周蟒程式轉換成 python 檔，再放到 Android 手機上去跑。&lt;br /&gt;&lt;br /&gt;上週在 Coscup 09 上也做了一些演示 Demo&lt;br /&gt;&lt;br /&gt;&lt;iframe src="http://docs.google.com/present/embed?id=ajkxs9k6pqxr_938ffvzq8n2" frameborder="0" width="410" height="342"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2644774680632110433?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2644774680632110433/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2644774680632110433' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2644774680632110433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2644774680632110433'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2009/08/173-android.html' title='1.7.3 展望：Android 上跑周蟒'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_2xGPUuRo1sg/SojZ3hogKDI/AAAAAAAABBQ/nRBsBKH4t54/s72-c/cosdroid.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-6107641069700764210</id><published>2009-08-10T22:47:00.000-07:00</published><updated>2009-08-10T22:48:59.081-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.7.2 發佈</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: 13px; color: rgb(51, 51, 51); line-height: 20px; "&gt;周蟒 1.7.2 (代號 死神13) 已發佈。可前往&lt;a href="http://code.google.com/p/zhpy/downloads/list" style="color: rgb(153, 153, 153); text-decoration: none; "&gt;網站&lt;/a&gt;下載, 或使用&lt;br /&gt;&lt;blockquote style="line-height: 1.3em; margin-top: 1em; margin-right: 20px; margin-bottom: 1em; margin-left: 20px; "&gt;easy_install -U zhpy&lt;br /&gt;&lt;/blockquote&gt;命令來更新。&lt;br /&gt;&lt;br /&gt;相容 python 2.6，在 Windows、Ubuntu 上測試過。&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-6107641069700764210?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/6107641069700764210/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=6107641069700764210' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6107641069700764210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6107641069700764210'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2009/08/172.html' title='周蟒 1.7.2 發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-4292049891954213242</id><published>2009-05-09T08:13:00.001-07:00</published><updated>2009-05-09T08:18:33.254-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><title type='text'>台灣報稅試算 2009 版</title><content type='html'>報稅季節又到了，雖然官方提供的網路報稅工具相當好用，&lt;div&gt;但有時不免對官方提供的工具心存懷疑，&lt;/div&gt;&lt;div&gt;深怕太過依賴官方工具，哪天政府在工具上偷偷動了些手腳，讓自己不知不覺間多交了點稅。&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;因此自己在報稅時順便更新了周蟒版的 &lt;a href="http://code.google.com/p/zhpy/downloads/list"&gt;台灣報稅試算 2009 版&lt;/a&gt;，可供驗證&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;檔案依然在官網下載區提供下載&lt;/div&gt;&lt;div&gt;http://code.google.com/p/zhpy/downloads/list&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-4292049891954213242?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/4292049891954213242/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=4292049891954213242' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4292049891954213242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4292049891954213242'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2009/05/2009.html' title='台灣報稅試算 2009 版'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-6356526325080045811</id><published>2008-12-15T23:54:00.000-08:00</published><updated>2009-08-11T00:44:34.091-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='建模'/><title type='text'>用周蟒建立銀行帳戶類別</title><content type='html'>我們以建立一個銀行帳戶模型為例，來學習寫作周蟒的類別與函式：&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;類別 帳戶(物件):&lt;br /&gt;   定義 __初始化__(金額):&lt;br /&gt;       餘額 = 金額&lt;br /&gt;&lt;br /&gt;   定義 領錢(金額):&lt;br /&gt;       餘額 = 餘額 - 金額&lt;br /&gt;&lt;br /&gt;   定義 存錢(金額):&lt;br /&gt;       領錢(-金額)&lt;br /&gt;&lt;br /&gt;定義 轉帳(來源帳戶, 目的帳戶, 金額):&lt;br /&gt;   來源帳戶.領錢(金額)&lt;br /&gt;   目的帳戶.存錢(金額)&lt;br /&gt;&lt;br /&gt;主程式:&lt;br /&gt;   撲滿 = 帳戶(2000)&lt;br /&gt;   錢包 = 帳戶(0)&lt;br /&gt;   轉帳(撲滿, 錢包, 50)&lt;br /&gt;   印出 撲滿.餘額&lt;br /&gt;   印出 錢包.餘額&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;程式本身就自我解釋地很好了。&lt;br /&gt;&lt;br /&gt;輸出結果為：&lt;br /&gt;&lt;br /&gt;1950&lt;br /&gt;50&lt;br /&gt;&lt;br /&gt;（例子取自 美麗程式）&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-6356526325080045811?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/6356526325080045811/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=6356526325080045811' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6356526325080045811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6356526325080045811'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/12/blog-post.html' title='用周蟒建立銀行帳戶類別'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-4933173805896024762</id><published>2008-11-12T17:57:00.001-08:00</published><updated>2008-11-12T19:15:35.186-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><title type='text'>周蟒上做測試</title><content type='html'>ZoomQuiet 在 python-cn group 上分享了一篇 &lt;a href="http://www.infoq.com/cn/articles/tdd-practice"&gt;TDD实践之实用主义&lt;/a&gt;，建議周蟒在教學之外，也和 unittest 作結合。&lt;br /&gt;&lt;br /&gt;事實上早已經有在周蟒專案中使用到 unittest 的&lt;a href="http://code.google.com/p/zwds/source/browse/trunk/zwds/core/test_yingyang.twpy"&gt;例子&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;簡短的範例如:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;定義 範例(資料):&lt;br /&gt;  返回 資料&lt;br /&gt;&lt;br /&gt;# doctest&lt;br /&gt;定義 測試_資料():&lt;br /&gt;  申明 範例("巧虎") == "巧虎"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;要測試時，先將程式碼轉成 python&lt;br /&gt;&lt;blockquote&gt;$ zhpy -p&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;再輸入&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;$ nosetests&lt;br /&gt;.&lt;br /&gt;-------&lt;br /&gt;OK&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;即完成自動測試。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-4933173805896024762?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/4933173805896024762/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=4933173805896024762' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4933173805896024762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4933173805896024762'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/11/blog-post.html' title='周蟒上做測試'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-5356334903108745608</id><published>2008-09-11T00:08:00.000-07:00</published><updated>2008-09-11T00:12:52.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.7.1 發佈</title><content type='html'>周蟒 1.7.1 (代號 太陽) 已發佈。可前往&lt;a href="http://code.google.com/p/zhpy/downloads/list"&gt;網站&lt;/a&gt;下載, 或使用&lt;br /&gt;&lt;blockquote&gt;easy_install -U zhpy&lt;br /&gt;&lt;/blockquote&gt;命令來更新。&lt;br /&gt;&lt;br /&gt;這是一個維護性質的更新。&lt;br /&gt;&lt;br /&gt;上一個版本(1.7) 在 &lt;a href="http://code.google.com/p/zhpy/downloads/list"&gt;官方網站&lt;/a&gt; 與 &lt;a href="http://pypi.python.org/pypi/zhpy"&gt;pypi&lt;/a&gt; &lt;a href="http://code.google.com/p/zhpy/downloads/list"&gt;&lt;/a&gt;下載次數總合，&lt;br /&gt;首度超過 500 份。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-5356334903108745608?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/5356334903108745608/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=5356334903108745608' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5356334903108745608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5356334903108745608'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/09/171.html' title='周蟒 1.7.1 發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-1720862044729935959</id><published>2008-08-22T23:15:00.000-07:00</published><updated>2008-08-23T07:19:55.081-07:00</updated><title type='text'>學習編程的寓言</title><content type='html'>&lt;blockquote&gt;新手在程式莊園外徘徊。&lt;br /&gt;&lt;br /&gt;門房跟新手說：&lt;br /&gt;「你要先買一本導覽手冊，我才準許你進來」。&lt;br /&gt;&lt;br /&gt;新手遞出了金幣，門房交給新手一本程式語言導覽手冊。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;新手在程式殿堂外徘徊。&lt;br /&gt;&lt;br /&gt;門口的警衛跟新手說：&lt;br /&gt;「你要能使用英語與其他人溝通，我才准許你進來」。&lt;br /&gt;&lt;br /&gt;新手學懂了英語，門口的警衛打開了門。&lt;br /&gt;&lt;br /&gt;程式的殿堂裡面，果然不出所料，&lt;br /&gt;&lt;br /&gt;已經擠滿了外國人。&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-1720862044729935959?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/1720862044729935959/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=1720862044729935959' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/1720862044729935959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/1720862044729935959'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/08/blog-post.html' title='學習編程的寓言'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8232509217104041055</id><published>2008-08-12T20:21:00.000-07:00</published><updated>2008-08-12T23:21:18.039-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>周蟒近期動態 (5~8月)</title><content type='html'>&lt;span style="font-size:180%;"&gt;數學表示法與周蟒&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mr. Monkey 寫了篇 &lt;a href="http://weijr-note.blogspot.com/2008/06/zhpy.html"&gt;zhpy 的另類用法&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;利用周蟒 可以用 ini 擴充詞庫的特性，加入數學符號對應，使得程式中可以直接寫出諸如&lt;br /&gt;&lt;blockquote&gt;print sin(π/4) ≠ √(2)/2&lt;/blockquote&gt;&lt;br /&gt;這樣的語法，將收錄在下一版的周蟒範例中 (example/realmath)。&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;文字 RPG 與周蟒&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;文字 RPG 是使用 console 遊玩，沒有圖片，遊戲裡面的互動與戰鬥都是以文字來表示的一種古早遊戲方式。基於一個德國人寫的 textrpg 模組， 我也寫了篇&lt;br /&gt;&lt;a href="http://inet6.blogspot.com/2008/07/rpg-textrpg.html"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;給我五分鐘，教你用中文腳本寫一個 RPG (使用 TextRPG)&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;Crunchy 與周蟒&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://crunchy.googlecode.com/"&gt;Crunchy&lt;/a&gt; 是一個網頁介面的系統，可以在教學文章中的 python 語言區塊後端直接附上一個互動式 shell，讓讀者可以直接在同個頁面試驗。目前支援 python 2.4 以上環境。&lt;br /&gt;&lt;br /&gt;因為 Crunchy 也是基於 utf-8 編碼，因此要讓 Crunchy 支援周蟒相當容易， 只要在原始碼中加上兩行敘述：&lt;br /&gt;&lt;br /&gt;crunchy/src/interpreter.py&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;class InteractiveInterpreter(object):&lt;br /&gt;....&lt;br /&gt;def runsource(self, source, filename="User's code", symbol="single"):&lt;br /&gt;....&lt;br /&gt;try:&lt;br /&gt;       &lt;span style="font-weight: bold;"&gt; from zhpy import convertor&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;           source = convertor(source)&lt;/span&gt;&lt;br /&gt;        code = self.compile(source, filename, symbol)&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;如此即可在 crunchy 的網頁介面中輸入周蟒程式碼。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8232509217104041055?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8232509217104041055/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8232509217104041055' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8232509217104041055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8232509217104041055'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/08/58.html' title='周蟒近期動態 (5~8月)'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-5033986077977028845</id><published>2008-05-21T01:16:00.000-07:00</published><updated>2008-05-21T01:26:38.088-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.7 發佈，interpreter 自動完成, 紫蟒</title><content type='html'>周蟒 1.7 (代號 戀人) 已發佈, 可前往&lt;a href="http://code.google.com/p/zhpy/downloads/list"&gt;網站&lt;/a&gt;下載, 或使用&lt;br /&gt;&lt;blockquote&gt;easy_install -U zhpy&lt;br /&gt;&lt;/blockquote&gt;命令來更新.&lt;br /&gt;&lt;br /&gt;主要更新有&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://zhpy.blogspot.com/2008/05/17-interpreter.html"&gt;interpreter 自動完成&lt;/a&gt;&lt;/li&gt;&lt;li&gt;拿掉從未使用的 '其':'self' 關鍵字對應&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;另外也歡迎 Bob Chao 加入周蟒專案, 近期他將帶給我們重新編排過的可下載 ODF/PDF 版 "咬一口 Python 程式語言" 文件.&lt;br /&gt;&lt;br /&gt;這幾天我也開了一個使用周蟒撰寫的術數專案 (主要是 &lt;a href="http://code.google.com/p/zwds/"&gt;紫微斗數&lt;/a&gt;, 中文專案名就取叫 "紫蟒" 好了 XD)&lt;br /&gt;使用中文編程 (python) 來描述術數間的關係, 還可隨時利用測試工具 (nose) 來驗證, 實在是最合適不過.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-5033986077977028845?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/5033986077977028845/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=5033986077977028845' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5033986077977028845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5033986077977028845'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/05/17-interpreter_21.html' title='周蟒 1.7 發佈，interpreter 自動完成, 紫蟒'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-973160858195740973</id><published>2008-05-13T19:56:00.000-07:00</published><updated>2008-05-20T20:28:37.781-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zwds'/><title type='text'>紫微蟒數</title><content type='html'>我對術數的研究還不深，之前讀易經註釋時，才發現原來易經的每個卦象爻都能互相解釋；五行生剋關係也是如此反覆循環不息，奧妙處相當迷人。&lt;br /&gt;&lt;br /&gt;我的假設是能否將術數(斗數)物件導向化，嘗試用程式語言來檢驗，演示各種'代號'互相之間的關係(例如五行生剋關係)。&lt;br /&gt;&lt;br /&gt;因此在發展出周蟒(Python)中文程式語言時，也試著動手將術數物件導向化。&lt;br /&gt;&lt;br /&gt;首先的成果是&lt;a href="http://code.google.com/p/zwds/wiki/ZiWei"&gt;紫微斗數排盤&lt;/a&gt;&lt;br /&gt;http://code.google.com/p/zwds/wiki/ZiWei&lt;br /&gt;&lt;br /&gt;目前嘗試用周蟒(Python)程式語言寫紫微排盤程式。&lt;br /&gt;程式的目的不是最快速的排盤，而是演示互相間的關係與推導。&lt;br /&gt;沒有找到好的推導方式時，還是採用能找到的查表或計算法。&lt;br /&gt;&lt;br /&gt;排盤程式還沒完成, 但整個模型已具其形, (已能排到年干四化).&lt;br /&gt;先拋出一些原始碼片段與文件供討論,&lt;a href="http://code.google.com/p/zwds/wiki/ReadingGuide"&gt; 完整原始碼與使用方法在此&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;會用到 &lt;a href="http://pyzh.googlecode.com/"&gt;pyzh 中文工具包&lt;/a&gt;中的 lunarcalendar (農曆), 提供輸入西元生日, 自動轉農曆生日來排盤.&lt;br /&gt;&lt;br /&gt;對周蟒/術數有興趣者, 可以以此為基礎, 以中文描述將各種中華文化傳統命卜精粹加以程式化. 以做為推導研究之用.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;最後也請大家一起為大地震受災的人們祈禱, 南無阿彌陀佛.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-973160858195740973?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/973160858195740973/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=973160858195740973' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/973160858195740973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/973160858195740973'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/05/blog-post_13.html' title='紫微蟒數'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8324090269924156104</id><published>2008-05-08T20:21:00.000-07:00</published><updated>2008-05-15T22:09:17.289-07:00</updated><title type='text'>關於中文本地化工具包</title><content type='html'>&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;googlecode 上有一個名稱跟周蟒(zhpy)很像的專案，叫做 &lt;a href="http://pyzh.googlecode.com/"&gt;pyzh&lt;/a&gt;。這個專案的目的是&lt;/span&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;提供一些中文本地化工具。&lt;/span&gt;&lt;br /&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&lt;br /&gt;前幾天剛好寫周蟒有段需要將程式轉成簡體，但 mac 上沒有好的繁簡轉換工具 (fx3 不能用同文堂插件)，於是花幾分鐘將 pyzh 專案的簡繁轉換工具弄成命令列可用了(很初步)。&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/pyzh/"&gt;http://code.google.com/p/pyzh/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;相信大家對中文工具的需求是不少的，感覺中文本地化工具包這專案相當有用處，&lt;br /&gt;只是還處於很早期階段，需要進一步加強。&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;想知道大家各自以使用者或開發者的角度， 對於我們 pythoner 需要怎樣的中文工具包這件事上，是怎麼看待的？&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;在此提出一些我對中文本地化工具包的想法：&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;1. 工具要支援命令列 :&lt;br /&gt;繁簡轉換工具、算字數工具、文本折行、農曆轉換工具都可以加以命令列化，變成一般通用的工具。&lt;br /&gt;可能有些小工具也可以從 ulipad 中抽取獨立出來。&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;2. 最好能提供 easy_install 安裝&lt;br /&gt;easy_install 安裝的好處就不必多說了&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;3. 共用 namespace&lt;br /&gt;讓這些相關 lib 共用一個 namespace, (建議是 zhutils, 類同於 docutils),&lt;br /&gt;然後用英文分類、命名調用。&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;一方面也算擴大用戶群(老外也有機會來用)，另一方面拼音的有侷限，例如 fanjian (--&gt; 犯賤 ?) 對不習慣拼音的我來說看來相當不&lt;br /&gt;雅。&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;建議的簡單 namespace 分類法:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;zhutils - word # 文字相關&lt;br /&gt;              - count # 算字數, 對應 wordcount&lt;br /&gt;              - translate [pinyin | tw | cn] # 翻譯成 拼音, 繁中 ,簡中,&lt;br /&gt;對應 word2pinyin, fanjian&lt;br /&gt;              - cn_word # 簡中分詞&lt;br /&gt;          - time # 轉干支計數, 用於算命?&lt;br /&gt;          - datetime # 日期相關&lt;br /&gt;          - .... 其他&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;中文本地化工具包，大家怎麼看？&lt;br /&gt;&lt;br /&gt;update 2008/5/15:&lt;br /&gt;&lt;/span&gt;&lt;span class="fixed_width"  style="font-family:Courier, Monospaced;"&gt;把整個 pyzh 大架構按照之前提出的思路修了一下, 整成了一個 zhutils 模塊, 以後可以用 pypi 來發佈. &lt;/span&gt;&lt;span class="fixed_width"  style="font-family:Courier, Monospaced;"&gt;現在所有 pyzh 模塊都在 zhutils 中, 所有副模塊分別歸類在 word(處理文字)  與 datetime(處理日期) 中. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8324090269924156104?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8324090269924156104/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8324090269924156104' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8324090269924156104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8324090269924156104'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/05/blog-post.html' title='關於中文本地化工具包'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-6400391362676859966</id><published>2008-05-06T01:40:00.000-07:00</published><updated>2008-05-06T01:52:29.576-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>周蟒 1.7 開發進度，interpreter 自動完成</title><content type='html'>昨天用 rlcompleter 讓周蟒 interpreter 支援自動完成（打單字自動補全關鍵詞，打英出中），&lt;br /&gt;例如任意打出 '印'、'print'、'pri'、'prin' 後，按下 tab 鍵， shell 中就自動換成 '印出' 一詞。&lt;br /&gt;&lt;br /&gt;以一段簡單的用迴圈印出資訊的程式碼為例：&lt;br /&gt;&lt;blockquote&gt;&gt;&gt;&gt; for i  in range(10):&lt;br /&gt;...    print i&lt;br /&gt;&lt;/blockquote&gt;要達到等同於這段 python 程式碼的目的，在 zhpy interpreter 中，原本得輸入：&lt;br /&gt;&lt;blockquote&gt;&gt;&gt;&gt; 取 i  自 範圍(10):&lt;br /&gt;...    印出 i&lt;br /&gt;&lt;/blockquote&gt;現在可以輸入&lt;br /&gt;&lt;blockquote&gt;&gt;&gt;&gt; for[tab] i in[tab] ran[tab](10):&lt;br /&gt;... pri[tab] i&lt;/blockquote&gt;每次按下 tab 鍵，interpreter 就會自動將 "for"、"in"、"range"、"print" 等關鍵字轉換成 "取"、"自"、"範圍"、"印出"等周蟒關鍵詞，大幅簡化輸入的次數。&lt;br /&gt;&lt;br /&gt;期待簡中開發者加入，協助增加利用拼音方式的自動完成。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-6400391362676859966?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/6400391362676859966/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=6400391362676859966' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6400391362676859966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6400391362676859966'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/05/17-interpreter.html' title='周蟒 1.7 開發進度，interpreter 自動完成'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2566208735104227355</id><published>2008-04-13T05:02:00.000-07:00</published><updated>2008-04-13T05:03:30.731-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ppt'/><title type='text'>在 OSDC.tw 08 的演講</title><content type='html'>在 OSDC.tw 08 的演講投影片在此&lt;br /&gt;&lt;br /&gt;&lt;iframe src='http://docs.google.com/EmbedSlideshow?docid=ajkxs9k6pqxr_404fn3cpcfw' frameborder='0' width='410' height='342'&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2566208735104227355?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2566208735104227355/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2566208735104227355' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2566208735104227355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2566208735104227355'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/04/osdctw-08.html' title='在 OSDC.tw 08 的演講'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7853884330481579476</id><published>2008-04-11T08:16:00.000-07:00</published><updated>2008-04-11T17:11:18.071-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒線上版，上線!</title><content type='html'>不要再說學習程式語言要先裝一些軟體很麻煩，&lt;br /&gt;或是說在看 &lt;a href="http://code.google.com/p/zhpy/wiki/ByteOfZhpy"&gt;咬一口 Python程式語言&lt;/a&gt; 電子書時手邊沒環境驗證。&lt;br /&gt;因為現在，&lt;br /&gt;周蟒也有線上版囉！&lt;br /&gt;&lt;br /&gt;&lt;a href="http://zhpy.appspot.com/"&gt;ZHPY.appspot 周蟒互動 Shell&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;ZHPY.appspot 使用的是 &lt;a href="http://appengine.google.com/"&gt;Google App Engine&lt;/a&gt; 服務，目前提供互動 Shell 功能，&lt;br /&gt;以後會視情況增加其他功能，例如線上 Python &lt;-&gt; 周蟒程式碼轉換等。&lt;br /&gt;&lt;br /&gt;如果有好的建議，請回報至周蟒的 &lt;a href="http://code.google.com/p/zhpy/issues/list"&gt;issue tracker&lt;/a&gt; 。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7853884330481579476?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7853884330481579476/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7853884330481579476' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7853884330481579476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7853884330481579476'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/04/blog-post_11.html' title='周蟒線上版，上線!'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3147543275161970097</id><published>2008-04-03T00:39:00.000-07:00</published><updated>2008-08-12T23:23:43.817-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>文摘</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;a href="http://yen.mde.nfu.edu.tw/pivot/entry.php?id=321"&gt;周蟒與RURple&lt;br /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://weijr-note.blogspot.com/2008/02/python-magiccodec-01.html"&gt;Python MagicCodec 0.1(更新到 0.11)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://weijr-note.blogspot.com/2008/03/blog-post.html"&gt;中文程式語言&lt;br /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://jerrylovesrebol.blogspot.com/2008/03/blog-post_20.html"&gt;用中文寫程式？！&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3147543275161970097?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3147543275161970097/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3147543275161970097' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3147543275161970097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3147543275161970097'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/04/blog-post.html' title='文摘'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-6313773848108454506</id><published>2008-04-03T00:30:00.000-07:00</published><updated>2008-04-03T00:35:44.320-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) 1.5.2 發佈</title><content type='html'>周蟒(zhpy) 1.5.2 發佈了, 代號"命運之輪".&lt;br /&gt;&lt;br /&gt;繼續重構, 在包含本板本後的版本中, 呼叫 convertor 之前不再需要先呼叫 annotator 了,&lt;br /&gt;如果 annotator 尚未呼叫過, convertor 會自動呼叫 annotator.&lt;br /&gt;&lt;br /&gt;請使用&lt;br /&gt;&lt;blockquote&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;命令來下載或更新周蟒版本，或前往&lt;a href="http://zhpy.googlecode.com/"&gt;網站&lt;/a&gt;查看更多關於周蟒的內容.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-6313773848108454506?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/6313773848108454506/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=6313773848108454506' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6313773848108454506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6313773848108454506'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/04/zhpy-152.html' title='周蟒(zhpy) 1.5.2 發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3312447881623023920</id><published>2008-03-21T00:38:00.000-07:00</published><updated>2008-03-21T00:42:42.176-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) 1.5.1 發佈</title><content type='html'>周蟒(zhpy) 1.5.1 發佈了, 代號"女皇".&lt;br /&gt;修復 1.5 版重構後導致 python 程式轉中文程式不正常的 bug.&lt;br /&gt;&lt;br /&gt;請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本，或前往網站查看更多關於周蟒的內容 http://zhpy.googlecode.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3312447881623023920?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3312447881623023920/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3312447881623023920' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3312447881623023920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3312447881623023920'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/03/zhpy-151.html' title='周蟒(zhpy) 1.5.1 發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-6254286072103742585</id><published>2008-02-29T04:43:00.000-08:00</published><updated>2008-02-29T04:49:29.213-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) 1.5 發佈, 重構</title><content type='html'>周蟒(zhpy) 1.5 發佈了 (代號 皇帝)。&lt;br /&gt;請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本，或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;這版本主要是對現有功能的維護與重構版本，一般用戶應該不會察覺到改變：&lt;br /&gt;&lt;br /&gt;  1. 更新關聯的套件&lt;br /&gt;  2. 將 merge 跟 rev_merge 函式合併&lt;br /&gt;  3. 加強 zhimport.py 並改名成 import_hook.py&lt;br /&gt;&lt;br /&gt;周蟒相關消息請至官方網站查看&lt;br /&gt;http://zhpy.blogspot.com/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;zhpy Changelog&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;1.5 (2/29/2008)&lt;br /&gt;--------------------&lt;br /&gt;code name: Emperor&lt;br /&gt;&lt;br /&gt;*Changes*&lt;br /&gt;&lt;br /&gt;* rename zhimport.py to import_hook.py&lt;br /&gt;* rewrite import_hook from magiccodec, thanks weijr&lt;br /&gt;http://weijr-note.blogspot.com/2008/02/python-magiccodec-01.html&lt;br /&gt;* use isinstance(target,dict) instead of type({}), thanks weijr&lt;br /&gt;* refactor merger&lt;br /&gt;* merge rev_merger to merger&lt;br /&gt;* refactor ini_annotator, py_annotator,&lt;br /&gt;    pattern, val_matching, rev_ini_annotator, &lt;br /&gt;    rev_py_annotator, trace_annotator to private method&lt;br /&gt;* refactor to distill baseWord&lt;br /&gt;* add some variable docstrings&lt;br /&gt;&lt;br /&gt;*Features*&lt;br /&gt;&lt;br /&gt;* add keywords:&lt;br /&gt;  * "屬性":"property", "属性":"property",&lt;br /&gt;* add set methods keyword:&lt;br /&gt;  * "定集合":"frozenset",&lt;br /&gt;  * "清除":"clear",&lt;br /&gt;  * "複製":"copy","拷贝":"copy",&lt;br /&gt;  * "加":"add",&lt;br /&gt;  * "丟棄":"discard","丢弃":"discard",&lt;br /&gt;  * "聯集":"union","联集":"union",&lt;br /&gt;  * "交集":"intersection",&lt;br /&gt;  * "差集":"difference",&lt;br /&gt;  * "對稱差集":"symmetric_difference", "对称差集":"symmetric_difference",&lt;br /&gt;&lt;br /&gt;*Fixes*&lt;br /&gt;&lt;br /&gt;*Project Updates*&lt;br /&gt;&lt;br /&gt;* update to pyparsing 1.4.11&lt;br /&gt;* update setuptools to 0.6.8&lt;br /&gt;* update epydoc to 3.0.1&lt;br /&gt;&lt;br /&gt;*Contributors*&lt;br /&gt;&lt;br /&gt;Fred Lin, weijr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-6254286072103742585?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/6254286072103742585/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=6254286072103742585' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6254286072103742585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/6254286072103742585'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/02/zhpy-15.html' title='周蟒(zhpy) 1.5 發佈, 重構'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3234683154143199806</id><published>2008-02-12T21:53:00.000-08:00</published><updated>2008-08-12T23:22:47.777-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><title type='text'>周蟒 1.5 之路</title><content type='html'>最近 weijr 寫了幾篇很有意思的文章:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://weijr-note.blogspot.com/2008/01/pep-263-python-metaprogramming.html"&gt;利用 PEP 263 做 Python Metaprogramming&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://weijr-note.blogspot.com/2008/02/python-converter-related.html"&gt;Python Converter Related&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://weijr-note.blogspot.com/2008/02/python-magiccodec-01.html"&gt;Python MagicCodec 0.1&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;weijr 提出了透過利用 python 會在程式檔開頭讀取編碼設定 (encoding) 的方法，來使用 python interpreter 直接執行如周蟒等程式，並且提出了基於周蟒 1.4 修改後的實做，其中許多修改很值得參考。&lt;br /&gt;&lt;br /&gt;&lt;a href="http://weijr-note.blogspot.com/2008/02/python-magiccodec-01.html"&gt;Python MagicCodec 0.1&lt;/a&gt; 裡有個大量修改過的周蟒 1.4 版本。&lt;br /&gt;&lt;br /&gt;看到 weijr 願意修改 zhpy 並發佈一個自己的版本我還蠻開心的，這表示周蟒開始值得其他人花心力來修改了，也是種肯定。&lt;br /&gt;但同時警覺到: 讓人寧願自己修改而不是發個 patch 給我們，也表示周蟒還有不足之處。&lt;br /&gt;&lt;br /&gt;因為周蟒是採取測試驅動開發，而且目標是相容多個 python 版本與平台，&lt;br /&gt;因此在周蟒實做中，我會避免使用 python 2.5 的語法或 python 2.6/3.0 時即將淘汰的語法，&lt;br /&gt;而且代碼需要通過全部測試，從而保證釋出版本的質量，使用者才能放心地採用或自由修改。&lt;br /&gt;&lt;br /&gt;周蟒本來就是一個採取測試驅動開發，集合大家創意的中文(python)程式語言，許許多多的功能都是由不同人貢獻出來(可以看 &lt;a href="http://zhpy.googlecode.com/svn/trunk/CHANGELOG.txt"&gt;ChangeLog&lt;/a&gt;)，才有今天的周蟒。&lt;br /&gt;&lt;br /&gt;周蟒 1.5 將繼續重構，並同時加入一些更進階的關鍵字，也許會在這版本或下個版本加入透過 encoding 來使用 python 直接執行周蟒的方法。(如果 weijr 肯發個 patch 過來就更快啦 :D)&lt;br /&gt;&lt;br /&gt;如果對周蟒原始碼有興趣，可以透過 &lt;blockquote&gt;svn co http://zhpy.googlecode.com/svn/trunk/&lt;/blockquote&gt; 來取得原始碼&lt;br /&gt;&lt;br /&gt;周蟒原始碼總是維持隨時都是可工作的。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3234683154143199806?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3234683154143199806/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3234683154143199806' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3234683154143199806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3234683154143199806'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/02/15.html' title='周蟒 1.5 之路'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2902562326134445498</id><published>2008-01-17T21:14:00.000-08:00</published><updated>2008-01-17T21:31:32.793-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) 1.4 發佈, Windows 用戶友善</title><content type='html'>周蟒(zhpy) 1.4 發佈了 (代號 倒吊男)。 &lt;br /&gt;請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本，或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/ &lt;br /&gt;&lt;br /&gt;這版本加強了許多實用的特性：&lt;br /&gt;&lt;br /&gt;1. 修復困擾許多新手的 Windows Interpreter 編碼報錯問題。&lt;br /&gt;2. 開啟 zhpy interpreter 時會判斷系統編碼，自動顯示繁簡中文提示 (ex: 周蟒 1.4 於 darwin 基於 Python 2.5.1)。&lt;br /&gt;3. 中文 traceback 支持(目前僅支援一般執行模式，不支援直譯器，Windows 下預設非 utf8 編碼，因此還看不到中文的 traceback)，目前只有少數的中文 traceback 字典，請幫忙補完中文 traceback 翻譯條目。&lt;br /&gt;4. 支持測試, 可以用 測試_xxx() 這樣的函數編寫測試用例. 編成 .py 後使用 nosetests 命令測試。&lt;br /&gt;&lt;br /&gt;注意周蟒目前不支援 unicode string (u'哈囉') 的表示方式，會在之後版本修正。&lt;br /&gt;&lt;br /&gt;周蟒相關消息請至官方網站查看&lt;br /&gt;http://zhpy.blogspot.com/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;zhpy Changelog&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;1.4 (1/18/2008):&lt;br /&gt;--------------------&lt;br /&gt;code name: Hang Man&lt;br /&gt;&lt;br /&gt;*Changes*&lt;br /&gt;&lt;br /&gt;* change keyword:&lt;br /&gt;  * "元組" instead of "組合":"tuple",&lt;br /&gt;  * "元组" instead of "组合":"tuple",&lt;br /&gt;* update example n_tabl.twpy&lt;br /&gt;&lt;br /&gt;*Features*&lt;br /&gt;&lt;br /&gt;* Introdure real chinese traceback support, currently works in compiler mode&lt;br /&gt;&lt;br /&gt;*Fixes*&lt;br /&gt;&lt;br /&gt;* Fix interpreter unicode issue mainly occured on Windows, thanks renhbo&lt;br /&gt;&lt;br /&gt;*Project Updates*&lt;br /&gt;&lt;br /&gt;* use setup.cfg to generate docs&lt;br /&gt;&lt;br /&gt;*Contributors*&lt;br /&gt;&lt;br /&gt;Fred Lin, renhbo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2902562326134445498?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2902562326134445498/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2902562326134445498' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2902562326134445498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2902562326134445498'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/01/zhpy-14-windows.html' title='周蟒(zhpy) 1.4 發佈, Windows 用戶友善'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-1114537704476707270</id><published>2008-01-08T17:40:00.000-08:00</published><updated>2008-01-08T17:43:20.130-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ppt'/><title type='text'>英文不太好, 也能第一次學程式語言就上手 -- 使用 Python 與周蟒</title><content type='html'>1/8 於 Tossug 作的演講，&lt;a href="http://wiki.tossug.org/%E5%BF%83%E5%BE%97%E5%88%86%E4%BA%AB#zhpy"&gt;簡介在此&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe src='http://docs.google.com/EmbedSlideshow?docid=ajkxs9k6pqxr_354z8r699hm' frameborder='0' width='410' height='342'&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-1114537704476707270?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/1114537704476707270/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=1114537704476707270' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/1114537704476707270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/1114537704476707270'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2008/01/python.html' title='英文不太好, 也能第一次學程式語言就上手 -- 使用 Python 與周蟒'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-4139136624552538456</id><published>2007-12-05T19:15:00.000-08:00</published><updated>2007-12-05T19:19:48.782-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='orz'/><title type='text'>周蟒特點 -- 一段與 Ping 的對話</title><content type='html'>P: PingYeh, G: gasolin&lt;br /&gt;&lt;br /&gt;P: 你的周蟒會唸詩嗎？不然來首小曲也不錯&lt;br /&gt;&lt;br /&gt;G: 不會，周蟒比較宅。&lt;br /&gt;周蟒會排紫微斗數盤；&lt;br /&gt;周蟒會網頁開發 karringell；&lt;br /&gt;周蟒會&lt;a href="http://yen.mde.nfu.edu.tw/pivot/entry.php?id=321"&gt;畫圖&lt;/a&gt;。&lt;br /&gt;周蟒可以寫 AVG 腳本...&lt;br /&gt;&lt;br /&gt;P: 周蟒重點是教學？周蟒的獨特之處是什麼？&lt;br /&gt;&lt;br /&gt;G: 目前教學是最強的特點吧。&lt;br /&gt;可以用中文來 modeling 生活中的事件，將物件導向映射到生活中。&lt;br /&gt;周蟒生成 python code 後執行速度也很不賴，而且可以寫中文系統腳本 @@&lt;br /&gt;還有與 python 的無縫轉換。&lt;br /&gt;&lt;br /&gt;P: 轉過去還轉得回來嗎？&lt;br /&gt;G: 可以!!! 雙向轉換!!&lt;br /&gt;當然，會有點不一樣，不過&lt;a href="http://zhpy.blogspot.com/2007/10/12.html"&gt;可以無限地互轉&lt;/a&gt;而且都能動&lt;br /&gt;&lt;br /&gt;G: 話說回來....實用性也算是教學考量之一, 果然我是搞&lt;a href="http://www.slat.org/poll_0607/view.php"&gt;教育推廣&lt;/a&gt;的 Orz&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-4139136624552538456?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/4139136624552538456/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=4139136624552538456' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4139136624552538456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4139136624552538456'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/12/ping.html' title='周蟒特點 -- 一段與 Ping 的對話'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-5711483464017963988</id><published>2007-12-05T01:19:00.000-08:00</published><updated>2008-12-15T23:55:26.821-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='建模'/><category scheme='http://www.blogger.com/atom/ns#' term='orz'/><title type='text'>生活化編程一起來 -- 用周蟒建立宅男模塊</title><content type='html'>由身邊事物開始學習物件導向，&lt;br /&gt;有了周蟒，編程可以更生活化。&lt;br /&gt;&lt;br /&gt;生活化編程這個 idea 的源起來自於一則學了 python 後就會飛起來的漫畫&lt;br /&gt;http://xkcd.com/353/&lt;br /&gt;&lt;br /&gt;在某地的討論過程中充滿了玩笑與歡樂，&lt;br /&gt;發現學習 python 編程應該可以更有樂趣。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;為了讓更模組更容易被理解, 所以使用周蟒.&lt;br /&gt;當然也歡迎用 python 擴展:&lt;br /&gt;&lt;br /&gt;我先丟一個基本範例，歡迎大家盡量擴展 XD&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;類別 宅男(男):&lt;br /&gt;  """&lt;br /&gt;  http://zh.wikipedia.org/wiki/宅男 (通俗用法)&lt;br /&gt;  """&lt;br /&gt;  定義 __初始化__(我):&lt;br /&gt;      我.知識=[keroro]&lt;br /&gt;&lt;br /&gt;  定義 把妹(我):&lt;br /&gt;      引發 尚未實作&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;聚合後完整的模塊會放在 zhpy.blogspot.com 上.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-5711483464017963988?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/5711483464017963988/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=5711483464017963988' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5711483464017963988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5711483464017963988'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/12/blog-post.html' title='生活化編程一起來 -- 用周蟒建立宅男模塊'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8199925952559593192</id><published>2007-12-02T19:40:00.000-08:00</published><updated>2007-12-02T19:52:22.455-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) 1.4 Beta1 發佈, 加強本地化</title><content type='html'>周蟒(zhpy) 1.4 Beta1 發佈了 (代號 黃色節制)。 &lt;br /&gt;請使用 「$ easy_install -U zhpy」 命令來下載或更新周蟒版本，或前往網站查看更多關於周蟒的內容 http://code.google.com/p/zhpy/ &lt;br /&gt;&lt;br /&gt;這版本加強了許多在地化的設定&lt;br /&gt;&lt;br /&gt;1. 試驗中的中文 traceback 支持(目前僅支援一般執行模式，不支援直譯器)&lt;br /&gt;2. 初步支持測試, 可以用 測試_xxx() 這樣的函數編寫測試用例. 編成 .py 後使用 nosetests 命令測試.&lt;br /&gt;3. 次要關鍵詞的修正&lt;br /&gt;4. 開啟 zhpy interpreter 時判斷系統編碼自動顯示繁簡中文 banner (ex: 周蟒 1.4b1 於 darwin 基於 Python 2.5.1)。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;zhpy Changelog&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;1.4b1 (12/3/2007):&lt;br /&gt;--------------------&lt;br /&gt;code name: Yellow Temperance&lt;br /&gt;&lt;br /&gt;*Changes*&lt;br /&gt;* change keyword:&lt;br /&gt;  * '操作系统错误' instead of '作业系统错误':"OSError"&lt;br /&gt;  * '申明' instead of "宣告":"assert"&lt;br /&gt;  * "申明錯誤" instead of "宣告錯誤":"AssertionError"&lt;br /&gt;  * "申明错误" instead of "宣告错误":"AssertionError"&lt;br /&gt;* add traceback term plugins (not functional yet)&lt;br /&gt;&lt;br /&gt;*Features*&lt;br /&gt;&lt;br /&gt;* while open interpreter, autodetect and show the localized banner&lt;br /&gt;* experimental chinese traceback support in convertor (not support in interpreter)&lt;br /&gt;* add keyword:&lt;br /&gt;  * "全域":"global"&lt;br /&gt;  * "全域變量":"globals","全域变量":"globals"&lt;br /&gt;  * "測試":"test", "测试":"test"&lt;br /&gt;  * "物件":"object", "对象":"object"&lt;br /&gt;* able to test though generated python file ($ nosetests n_xxx.py)&lt;br /&gt;&lt;br /&gt;*Fixes*&lt;br /&gt;&lt;br /&gt;* fix triple quote bug, thanks renhbo&lt;br /&gt;* allow cascading 2 identifiers (cascade 3 or more identifiers is not support)&lt;br /&gt;&lt;br /&gt;*Project Updates*&lt;br /&gt;&lt;br /&gt;*Contributors*&lt;br /&gt;&lt;br /&gt;Fred Lin, renhbo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8199925952559593192?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8199925952559593192/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8199925952559593192' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8199925952559593192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8199925952559593192'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/12/zhpy-14-beta1.html' title='周蟒(zhpy) 1.4 Beta1 發佈, 加強本地化'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7952741405659882271</id><published>2007-11-06T09:51:00.001-08:00</published><updated>2007-11-06T09:51:03.996-08:00</updated><title type='text'>周蟒專案首頁更新
</title><content type='html'>周蟒專案首頁更新了介紹訊息,&lt;br /&gt;將周蟒的特性與資料以簡短的文字更清楚地介紹給大家。並提供了更多有用的連結。&lt;br /&gt;&lt;br /&gt;http://code.google.com/p/zhpy/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7952741405659882271?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7952741405659882271/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7952741405659882271' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7952741405659882271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7952741405659882271'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/11/blog-post_06.html' title='周蟒專案首頁更新&#xA;'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2407167341263129952</id><published>2007-11-05T18:11:00.001-08:00</published><updated>2007-11-05T18:11:53.725-08:00</updated><title type='text'>好讀的程式
</title><content type='html'>難看的程式我覺得是一種 bad manner, 就像在正式公開場合穿著拉塌一樣&lt;br class="khtml-block-placeholder"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2407167341263129952?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2407167341263129952/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2407167341263129952' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2407167341263129952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2407167341263129952'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/11/blog-post_05.html' title='好讀的程式&#xA;'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8274100302914113048</id><published>2007-11-04T19:56:00.000-08:00</published><updated>2007-11-04T19:58:17.632-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) 1.3 版發佈, 解壓縮即用</title><content type='html'>周蟒(zhpy) 1.3 版剛發佈了(代號 白蛇)&lt;br /&gt;&lt;br /&gt;請使用&lt;br /&gt;&lt;br /&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;br /&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;http://code.google.com/p/zhpy/ &lt;br /&gt;&lt;br /&gt;這版本主要是增加解壓縮即用(開箱即用/Battery Included)的能力. &lt;br /&gt;附帶了 pyparsing 模塊.&lt;br /&gt;只要下載了源碼包(Source Pack), 解壓縮後即可直接執行&lt;br /&gt;&lt;br /&gt;$ python interpreter.py &lt;br /&gt;&lt;br /&gt;來直接試用周蟒直譯器. 或執行&lt;br /&gt;&lt;br /&gt;$ python commandline.py &lt;br /&gt;&lt;br /&gt;來執行周蟒程式或轉換 python 程式成周蟒程式. (跟一般周蟒命令列工具用法相同)&lt;br /&gt;&lt;br /&gt;只有想要用中文系統腳本或隨處可執行周蟒的情況下才一定得安裝周蟒.&lt;br /&gt;&lt;br /&gt;就像漫畫 jojo 冒險野郎中的白蛇能抽取替身能力者的能力成為 Disc, 將Disc放到任何人身上這個人就立即擁有該替身能力一樣.&lt;br /&gt;&lt;br /&gt;另一個特點是模塊包更獨立. 繁簡中文插件包是分開的.&lt;br /&gt;你可以從源碼包中刪掉用不著的簡體中文插件(plugcn.py), 周蟒仍能正常執行. &lt;br /&gt;&lt;br /&gt;或是從源碼包中單獨取出 interpreter.py(直譯器), zhpy.py(核心), zhdc.py(關鍵詞轉換庫), plugtw.py (繁中插件) 四個檔(如果沒裝 pyparsing 的話也要拷貝 pyparsing.py), 執行&lt;br /&gt;&lt;br /&gt;$ python interpreter.py&lt;br /&gt;&lt;br /&gt;也能執行有限功能的周蟒(zhpy core).&lt;br /&gt;&lt;br /&gt;zhpy Changelog&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;1.3 (11/5/2007):&lt;br /&gt;--------------------&lt;br /&gt;code name: White Snake&lt;br /&gt;&lt;br /&gt;*Changes*&lt;br /&gt;&lt;br /&gt;* Separate traditional and simplified chinese keywords from zhdc to plug[lang].py&lt;br /&gt;* moveout plugins' setuptools dependency, now you can try zhpy without install.&lt;br /&gt;* change keyword:&lt;br /&gt;  * "引用錯誤", "引用错误" instead of "参考错误":"ReferenceError"&lt;br /&gt;* make py_annotator work while only plugtw or plugcn exists.&lt;br /&gt;&lt;br /&gt;*Features*&lt;br /&gt;&lt;br /&gt;* support custom name space in zh_exec, thanks renhbo&lt;br /&gt;* able to run the commandline without install&lt;br /&gt;* able to run the interpreter with 4 module ["interpreter", "zhpy", "zhdc", "plug[lang]"]&lt;br /&gt;without install (core mode)&lt;br /&gt;* able to profiling standalone interpreter with "--profile" option&lt;br /&gt;&lt;br /&gt;*Fixes*&lt;br /&gt;&lt;br /&gt;* fix keyword "locals" instead of "local"&lt;br /&gt;* generate proper profix while the origin source is suffixed with '.tw.py' or '.cn.py'&lt;br /&gt;&lt;br /&gt;*Project Updates*&lt;br /&gt;&lt;br /&gt;* include pyparsing in distribution&lt;br /&gt;* doc update&lt;br /&gt;* add official zhpy blog: http://zhpy.blogspot.com/&lt;br /&gt;* remove zhpy_ext sample&lt;br /&gt;&lt;br /&gt;*Contributors*&lt;br /&gt;&lt;br /&gt;Fred Lin, renhbo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8274100302914113048?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8274100302914113048/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8274100302914113048' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8274100302914113048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8274100302914113048'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/11/zhpy-13.html' title='周蟒(zhpy) 1.3 版發佈, 解壓縮即用'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2828024186514719706</id><published>2007-11-02T11:30:00.000-07:00</published><updated>2008-01-08T01:27:02.095-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ppt'/><title type='text'>[周蟒，快速簡介]投影片</title><content type='html'>11/3 於 &lt;a href="http://coscup.org/2007/"&gt;coscup07&lt;/a&gt; lighting talk 介紹周蟒的投影片&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.google.com/Doc?id=ajkxs9k6pqxr_288dsf9sj"&gt;周蟒，快速簡介&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe src='http://docs.google.com/EmbedSlideshow?docid=ajkxs9k6pqxr_288dsf9sj' frameborder='0' width='410' height='342'&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2828024186514719706?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2828024186514719706/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2828024186514719706' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2828024186514719706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2828024186514719706'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/11/blog-post.html' title='[周蟒，快速簡介]投影片'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2445425787853011930</id><published>2007-10-30T11:48:00.000-07:00</published><updated>2007-10-30T11:49:09.241-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Philosophy'/><title type='text'>INET6: 周蟒中文程式語言的四不一沒有</title><content type='html'>&lt;a href="http://inet6.blogspot.com/2007/09/blog-post_22.html#links"&gt;INET6: 周蟒中文程式語言的四不一沒有&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2445425787853011930?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2445425787853011930/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2445425787853011930' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2445425787853011930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2445425787853011930'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/10/inet6.html' title='INET6: 周蟒中文程式語言的四不一沒有'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7682109654341642698</id><published>2007-10-19T10:59:00.000-07:00</published><updated>2007-10-30T11:17:46.288-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.2 版發佈</title><content type='html'>&lt;b style="color: black; background-color: rgb(255, 255, 102);"&gt;周蟒&lt;/b&gt; 1.2 版剛發佈了(代號 鎮魂曲 )&lt;br /&gt;&lt;p&gt;請使用 $ easy_install -U zhpy 命令下載或更新&lt;b style="color: black; background-color: rgb(255, 255, 102);"&gt;周蟒&lt;/b&gt;版本.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;或前往網站查看更多關於&lt;b style="color: black; background-color: rgb(255, 255, 102);"&gt;周蟒&lt;/b&gt;的內容 &lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/zhpy/"&gt;http://code.google.com/p/zhpy/&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;主要加強有:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* 內建 sys 模組關鍵詞&lt;br /&gt;&lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/zhpy/wiki/ZhpyModules"&gt;http://code.google.com/p/zhpy/wiki/ZhpyModules&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* 加入雙向轉換測試用例&lt;br /&gt;test_api.py&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* 雙向中文變量轉換 zh_chr/zh_ord&lt;br /&gt;assert zh_chr(zh_ord('範例'.decode("utf8"))) == '範例'&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* 雙向中文中文檔名轉換&lt;br /&gt;&lt;/p&gt;&lt;p&gt;$ zhpy -p 範例.py&lt;br /&gt;產生檔名 p_7bc4_4f8b_v.py&lt;br /&gt;&lt;/p&gt;&lt;p&gt;再用 $ zhpy --tw p_7bc4_4f8b_v.py&lt;br /&gt;產生檔名 v_範例.py&lt;br /&gt;&lt;/p&gt;&lt;p&gt;另外歡迎 renhbo 加入開發者行列&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1.2 (10/19/2007):&lt;br /&gt;--------------------&lt;br /&gt;code name: Requiem&lt;br /&gt;&lt;/p&gt;&lt;p&gt;*Changes*&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* Use build-in int function to convert hex string, thanks Jiahua Huang&lt;br /&gt;* refactor repeative tripleQuote pattern to single place (zhpy)&lt;br /&gt;* refactor 'number_to_variable' function to 'zh_chr' function (pyzh)&lt;br /&gt;* refactor 'variable_to_number' function to 'zh_ord' function (zhpy)&lt;br /&gt;* support chinese filename to uri filename while convert with '-p'&lt;br /&gt;option&lt;br /&gt;* zh_ord and zh_chr are bi-direction convertable now&lt;br /&gt;* change keyword:&lt;br /&gt; * '最大值' instead of '最大':'max'&lt;br /&gt; * '最小值' instead of '最小':'min'&lt;br /&gt; * '最大值' instead of '最大':'max'&lt;br /&gt; * '最小值' instead of '最小':'min'&lt;br /&gt; * '反 ' instead of '逆 ':'reverse',&lt;br /&gt;&lt;/p&gt;&lt;p&gt;*Features*&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* add zhimport module to support chinese file name import, thanks&lt;br /&gt;Jiahua Huang&lt;br /&gt;* checked in experimental direct zhpy module import(disabled), thanks&lt;br /&gt;Jiahua Huang&lt;br /&gt;* add build-in sys module keyword plugin&lt;br /&gt;* add pyzh and bi-directional translation tests&lt;br /&gt;&lt;/p&gt;&lt;p&gt;*Fixes*&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* support multilines comments with triple single quote, thanks renhbo&lt;br /&gt;&lt;/p&gt;&lt;p&gt;*Project Updates*&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* set svn:external to update ez_setup script automaticaly&lt;br /&gt;* renhbo joined as the project member&lt;br /&gt;&lt;/p&gt;&lt;p&gt;*Contributors*&lt;br /&gt;&lt;/p&gt;Fred Lin, Jiahua Huang, renhbo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7682109654341642698?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7682109654341642698/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7682109654341642698' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7682109654341642698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7682109654341642698'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/10/12.html' title='周蟒 1.2 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3265522345260886154</id><published>2007-10-12T11:18:00.000-07:00</published><updated>2007-10-30T11:19:53.149-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.1.1 版發佈</title><content type='html'>&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;周蟒 1.1.1 版剛發佈了(代號 暗青之月 )&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;請使用&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;&lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/zhpy/"&gt;http://code.google.com/p/zhpy/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;主要是解決幾個 bug:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;* 程式或直譯器中可以導入當前目錄下的模組&lt;br /&gt;* 解決文件字串(docstring)解析不正常的問題&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;感謝 renhbo 提出這些問題, 大家才有更完整的周蟒可用.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;1.1.1 (10/12/2007):&lt;br /&gt;--------------------&lt;br /&gt;code name: Dark Blue Moon&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;*Changes*&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;*Features*&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;*Fixes*&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;* Able to import modules in current directory with interpreter or&lt;br /&gt;script, thanks renhbo&lt;br /&gt;* fix python to zhpy command with any ini file in current directory,&lt;br /&gt;thanks renhbo&lt;br /&gt;* fix multilines comments translated incorrectly&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;*Project Updates*&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;* update release note&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;*Contributors*&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;Fred Lin, renhbo &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3265522345260886154?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3265522345260886154/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3265522345260886154' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3265522345260886154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3265522345260886154'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/10/11.html' title='周蟒 1.1.1 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-4122721696829234727</id><published>2007-10-08T11:20:00.000-07:00</published><updated>2007-10-30T11:21:04.682-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.1 版發佈</title><content type='html'>&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;周蟒 1.1 版剛發佈了(代號 回音) , 請使用&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;&lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/zhpy/"&gt;http://code.google.com/p/zhpy/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;----&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;這版本主要是增加 python 程式轉周蟒程式(--tw | --cn)的命令&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;使用方式:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;拿任一個 python 程式 (source.py), 運行&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;     $ zhpy --tw source.py&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;則此 python 程式會被轉換成 v_source.twpy 周蟒程式.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;你也可以透過多次反向轉換來驗證周蟒與 python 的相容性&lt;br /&gt;$ zhpy --p source.py&lt;br /&gt;$ zhpy --tw n_source.py&lt;br /&gt;.....&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;PS: 如果要從繁體周蟒程式轉簡體周蟒程式, 命令行工具除了可以支援繁簡關鍵詞轉換外, 並不支援變數的繁簡字詞轉換. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-4122721696829234727?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/4122721696829234727/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=4122721696829234727' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4122721696829234727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4122721696829234727'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/10/11_08.html' title='周蟒 1.1 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-5687641366439472995</id><published>2007-10-04T11:21:00.000-07:00</published><updated>2007-10-30T11:23:43.774-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 1.0 版發佈</title><content type='html'>&lt;span class="fixed_width"  style="font-family:Courier, Monospaced;"&gt;在 13 個發佈版本後，[&lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/zhpy"&gt;http://code.google.com/p/zhpy&lt;/a&gt; 周蟒發佈了 1.0 版本，提供功能完整，獨立於&lt;br /&gt;Python 版本，完全與 Python 相容的中文程式語言。&lt;br /&gt; 周蟒包含 Python 中文關鍵詞對應轉換，互動式直譯器，中文腳本等功能，並提供&lt;a target="_blank" rel="nofollow" href="http://code.google.com/p/zhpy/wiki/ByteOfZhpy"&gt; 咬一口周蟒中文程式語言&lt;/a&gt;電子書。可同時用作學習周蟒與 Python 語言。&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier, Monospaced;"&gt;已更新到 &lt;a target="_blank" rel="nofollow" href="http://wiki.python.org.tw/Pot/News"&gt;http://wiki.python.org.tw/Pot/News&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-5687641366439472995?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/5687641366439472995/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=5687641366439472995' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5687641366439472995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/5687641366439472995'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/10/10.html' title='周蟒 1.0 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7736616307222711630</id><published>2007-09-28T11:25:00.000-07:00</published><updated>2007-10-30T11:26:34.951-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 0.9.4版發佈</title><content type='html'>Hello:&lt;br /&gt;&lt;br /&gt;很高興通知大家, 經過中秋假期的努力, 周蟒 0.9.4版剛發佈了(代號 銀色戰車) , 請使用&lt;br /&gt;&lt;br /&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;br /&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;使用者察覺的改動:&lt;br /&gt;=================&lt;br /&gt;&lt;br /&gt;* wikipedia 新增周蟒條目, 歡迎幫忙完善&lt;br /&gt;http://zh.wikipedia.org/w/index.php?title=ZhPy&amp;variant=zh-tw&lt;br /&gt;&lt;br /&gt;* 重寫命令行工具, 現在周蟒腳本終於跟 Python 一樣, 能接受命令行參數了&lt;br /&gt;&lt;br /&gt;* 移除中文標點符號支援, 原因寫在 [周蟒中文程式語言的四不一沒有] 中&lt;br /&gt;http://inet6.blogspot.com/2007/09/blog-post_22.html&lt;br /&gt;&lt;br /&gt;* 修改自"Byte of Python" 的 "咬一口周蟒中文程式語言" 電子書已將前一大半章節編修完成, 範例採用一段周蟒程式搭配一段對應&lt;br /&gt;的Python程式的方式, 有了電子書, 學習周蟒更安心, 搭配對應的 Python 程式用作教學也更有彈性,&lt;br /&gt; http://code.google.com/p/zhpy/wiki/ByteOfZhpy&lt;br /&gt;&lt;br /&gt;* 註解不再錯被翻譯成英文&lt;br /&gt;&lt;br /&gt;* 提供兩個指代 "self" 的關鍵詞: "其" 和 "我"。 雖然"其"字似乎用作關鍵詞很漂亮。&lt;br /&gt;不過要追求更白話的周蟒, 也加入了 "我" 這個關鍵詞。&lt;br /&gt;&lt;br /&gt;0.9.4 (9/28/2007):&lt;br /&gt;--------------------&lt;br /&gt;code name: Silver Chariot&lt;br /&gt;&lt;br /&gt;*Changes*&lt;br /&gt;&lt;br /&gt;* remove chinese punctuations support&lt;br /&gt;* change keyword&lt;br /&gt;  * use "檔案", " 案" instead of "文件":"file"&lt;br /&gt;  * use "返回" instead of " 回":"return"&lt;br /&gt;  * use "組合", " 合" instead of "數組":"tuple"&lt;br /&gt;&lt;br /&gt;*Features*&lt;br /&gt;&lt;br /&gt;* allow zhpy script with commandline arguments&lt;br /&gt;* add keyword:&lt;br /&gt;  * "其":"self"&lt;br /&gt;  * "我":"self"&lt;br /&gt;&lt;br /&gt;*Fixes*&lt;br /&gt;&lt;br /&gt;* fixed comment shouldn't be translated&lt;br /&gt;* 'byte of zhpy' doc update&lt;br /&gt;&lt;br /&gt;*Project Updates*&lt;br /&gt;&lt;br /&gt;* rename zhpy_interpreter.py to interpreter.py&lt;br /&gt;* rename zhpy_cmd.py to commandline.py&lt;br /&gt;* rename zhpy_info.py to info.py&lt;br /&gt;* new commandline utility&lt;br /&gt;* remove command shortcut: "zhpy [input] [output]", use "zhpy -i&lt;br /&gt;[input] -o [output]" or&lt;br /&gt;   "zhpy -p [input]"&lt;br /&gt;&lt;br /&gt;*Contributors*&lt;br /&gt;&lt;br /&gt;Fred Lin&lt;br /&gt;&lt;br /&gt;歡迎大家下載使用並多多提供建議。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7736616307222711630?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7736616307222711630/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7736616307222711630' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7736616307222711630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7736616307222711630'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/09/094.html' title='周蟒 0.9.4版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7206970398424241470</id><published>2007-09-15T11:26:00.000-07:00</published><updated>2007-10-30T11:27:29.185-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 0.9.3版發佈</title><content type='html'>周蟒 0.9.3版已發佈(代號 灰塔) , 請使用&lt;br /&gt;&lt;br /&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;br /&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;使用者察覺的改動:&lt;br /&gt;=================&lt;br /&gt;&lt;br /&gt;1. 加入關鍵詞 * "區域變量":"local", " 域 量":"local"&lt;br /&gt;&lt;br /&gt;2. 加入各種例外(exception)中文關鍵詞&lt;br /&gt;&lt;br /&gt;3. 括號中的標點不再被不正常地替換&lt;br /&gt;&lt;br /&gt;4. 檔案夾中放不合法的 ini 檔時不再導致程式中斷.&lt;br /&gt;&lt;br /&gt;0.9.3 (09/15/2007):&lt;br /&gt;--------------------&lt;br /&gt;code name: Gray Tower&lt;br /&gt;&lt;br /&gt;*Changes*&lt;br /&gt;&lt;br /&gt;*Features*&lt;br /&gt;&lt;br /&gt;* catch up exception definitions http://www.chinesepython.org/doc/ref.html&lt;br /&gt;* make chinese punctuation be a plugin&lt;br /&gt;* add keyword:&lt;br /&gt;  * "區域變量":"local", " 域 量":"local"&lt;br /&gt;* Downloadable API Doc&lt;br /&gt;&lt;br /&gt;*Fixes*&lt;br /&gt;&lt;br /&gt;* make incorrect ini file not cause exception&lt;br /&gt;* fix replacedict, thanks renhbo&lt;br /&gt;* fix miss-replaced punctuations in quotestring&lt;br /&gt;&lt;br /&gt;*Project Updates*&lt;br /&gt;&lt;br /&gt;* update ez_setup.py to 0.6c7&lt;br /&gt;&lt;br /&gt;*Contributors*&lt;br /&gt;&lt;br /&gt;Fred Lin, renhbo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7206970398424241470?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7206970398424241470/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7206970398424241470' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7206970398424241470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7206970398424241470'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/09/093.html' title='周蟒 0.9.3版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3053959503762493976</id><published>2007-09-10T11:27:00.000-07:00</published><updated>2007-10-30T11:28:18.366-07:00</updated><title type='text'>周蟒 0.9.2版發佈</title><content type='html'>周蟒 0.9.2版發佈(代號 綠色法皇),&lt;br /&gt;&lt;br /&gt;使用者察覺的改動:&lt;br /&gt;=================&lt;br /&gt;&lt;br /&gt;1.  補充了不少關鍵字.&lt;br /&gt;&lt;br /&gt;2. 使用 zhpy --info 命令會看到較多插件.&lt;br /&gt;&lt;br /&gt;開發者察覺的改動:&lt;br /&gt;==================&lt;br /&gt;&lt;br /&gt;1. 進一步依賴 0.9 引入的插件架構, twdict, cndict 完全靠插件與 ini 檔動態來建立.&lt;br /&gt;&lt;br /&gt;2. 重構註解器(annotator), ini 跟 py 插件處理分離, 架構為更清晰.&lt;br /&gt;&lt;br /&gt;3. 分離關鍵字表, 關鍵字透過插件架構加入 twdict, cndict.&lt;br /&gt;除了直接查找時更容易外, 也有利於 GUI 呼叫.&lt;br /&gt;http://zhpy.googlecode.com/svn/trunk/zhpy/zhdc.py&lt;br /&gt;&lt;br /&gt;4. 插件由字典換成物件.  提供新插件範本下載&lt;br /&gt;http://code.google.com/p/zhpy/downloads/detail?name=zhpy_ext_0.2.zip&lt;br /&gt;&lt;br /&gt;5. 插件中提供更多訊息. 以下是呼叫插件方式:&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; import pkg_resources&lt;br /&gt;&gt;&gt;&gt; for entrypoints in pkg_resources.iter_entry_points("zhpy.twdict"):&lt;br /&gt;&lt;br /&gt;...           tool = entrypoints.load()&lt;br /&gt;...           print tool.title&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;內部函數&lt;br /&gt;例外&lt;br /&gt;周蟒&lt;br /&gt;內建關鍵詞&lt;br /&gt;&lt;br /&gt;插件還提供除了 title 之外的屬性:&lt;br /&gt;&lt;br /&gt;* description: 中文描述&lt;br /&gt;* keyword: 關鍵詞字典&lt;br /&gt;&lt;br /&gt;安裝&lt;br /&gt;==========&lt;br /&gt;&lt;br /&gt;請使用&lt;br /&gt;&lt;br /&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;br /&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;http://code.google.com/p/zhpy/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3053959503762493976?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3053959503762493976/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3053959503762493976' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3053959503762493976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3053959503762493976'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/09/092.html' title='周蟒 0.9.2版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8805816354494920757</id><published>2007-09-08T11:28:00.000-07:00</published><updated>2007-10-30T11:29:09.131-07:00</updated><title type='text'>周蟒 0.9.1版發佈</title><content type='html'>周蟒是 python 程式語言的中文替身.&lt;br /&gt;&lt;br /&gt;周蟒 0.9.1版發佈(代號 紅色魔術師),&lt;br /&gt;&lt;br /&gt;主要更新如下:&lt;br /&gt;&lt;br /&gt;  * 較漂亮的插件訊息 "zhpy --info" 輸出.&lt;br /&gt;&lt;br /&gt;  * 內建的繁簡中文關鍵字典加入插件系統, twdict, cndict 將出現在"zhpy --info" 顯示的插件列表中.&lt;br /&gt;&lt;br /&gt;  * 移除 twdict, cndict 這兩個例外情況, worddict 現已完全靠插件與ini檔動態來建立.&lt;br /&gt;&lt;br /&gt;  * 加入 "周蟒":"zhpy", 中文執行":"zh_exec" 關鍵字.&lt;br /&gt;&lt;br /&gt;因為"執行":"exec"函式並不支援中文, 所以在周蟒中建議使用&lt;br /&gt;{{{&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; 從 周蟒 導入 中文執行&lt;br /&gt;&gt;&gt;&gt; 中文執行("印出 'hello'")&lt;br /&gt;hello&lt;br /&gt;}}}&lt;br /&gt;&lt;br /&gt;  * 通過60筆以上的測試用例&lt;br /&gt;  * 起司蛋糕評分[1]達到 92&lt;br /&gt;  * 網站已附帶部份的 [咬一口周蟒] 開源書籍 http://code.google.com/p/zhpy/wiki/ByteOfZhpy&lt;br /&gt;&lt;br /&gt;請使用&lt;br /&gt;&lt;br /&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令下載或更新周蟒版本.&lt;br /&gt;&lt;br /&gt;或前往網站查看更多關於周蟒的內容&lt;br /&gt;http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;[1] http://www.pycheesecake.org&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8805816354494920757?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8805816354494920757/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8805816354494920757' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8805816354494920757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8805816354494920757'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/09/091.html' title='周蟒 0.9.1版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-4802312646329615634</id><published>2007-09-05T11:29:00.000-07:00</published><updated>2007-10-30T11:29:58.215-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒 0.9版發佈</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;周蟒 0.9版發佈(代號 世界), 主要更新如下:&lt;br /&gt;&lt;br /&gt;* 關鍵字插件系統, 附插件範本&lt;br /&gt;http://code.google.com/p/zhpy/wiki/ModulePlugin&lt;br /&gt;* 直譯器可搭配 ini 使用&lt;br /&gt;http://code.google.com/p/zhpy/wiki/PlugKeywords&lt;br /&gt;* 可將周蟒當作系統腳本使用&lt;br /&gt;http://code.google.com/p/zhpy/wiki/ExampleHello&lt;br /&gt;* 修正編碼判斷問題&lt;br /&gt;* Good Practice: cheesecake rate 到達 92% (502/545)&lt;br /&gt;http://www.pycheesecake.org&lt;br /&gt;&lt;br /&gt;請使用&lt;br /&gt;&lt;br /&gt;$ easy_install -U zhpy&lt;br /&gt;&lt;br /&gt;命令下載或更新.&lt;br /&gt;&lt;br /&gt;目前周蟒文件正以 '咬一口 Python 程式語言' 為範本,&lt;br /&gt;改編成 '咬一口周蟒程式語言'.&lt;br /&gt;只要初步比較就可以確信周蟒確實可以當作 python 程式語言的中文替身 :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-4802312646329615634?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/4802312646329615634/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=4802312646329615634' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4802312646329615634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4802312646329615634'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/09/09.html' title='周蟒 0.9版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2539336980769684412</id><published>2007-08-30T11:30:00.000-07:00</published><updated>2007-10-30T11:30:55.474-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>zhpy 0.8版發佈</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;zhpy 0.8版發佈(代號 自由之石), 主要更新如下:&lt;br /&gt;&lt;br /&gt;* 內建中文編程的互動式直譯器 (zhpyi.py)&lt;br /&gt;* 內建 zhpy 轉 python 庫 (pyzh.py)&lt;br /&gt;* 獨立關鍵字庫 zhdc.py&lt;br /&gt;* 獨立命令行工具 zhpy_cmd.py&lt;br /&gt;* 更多繁簡關鍵字&lt;br /&gt;* 自動編碼識別, 不強制用 utf-8 編輯方便在 windows 下使用.&lt;br /&gt;* 命令行可用 -e/--encoding 選項指定編碼&lt;br /&gt;* 架構整理&lt;br /&gt;* 可用附檔名 .tw.py, .cn.py 來區別繁簡體 zhpy 程式&lt;br /&gt;* 更多測試與範例&lt;br /&gt;&lt;br /&gt;使用 zhpy 命令不帶參數即進入互動式直譯器模式,  啟動方式跟 python 一樣, 範例:&lt;br /&gt;&lt;br /&gt;$zhpy&lt;br /&gt;..........&lt;br /&gt;&gt;&gt;&gt; 印出 "hello"&lt;br /&gt;&lt;br /&gt;hello&lt;br /&gt;&lt;br /&gt;可使用 easy_install 命令安裝.&lt;br /&gt;&lt;br /&gt;$ easy_install zhpy&lt;br /&gt;&lt;br /&gt;命令會自動從 http://python.org/pypy /zhpy 下載程式下來安裝.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2539336980769684412?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2539336980769684412/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2539336980769684412' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2539336980769684412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2539336980769684412'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy-08.html' title='zhpy 0.8版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3395594756714157404</id><published>2007-08-25T11:31:00.000-07:00</published><updated>2007-10-30T11:31:48.177-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>zhpy 0.7版發佈</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;zhpy 0.7版發佈(代號 黃金體驗), 主要更新如下:&lt;br /&gt;&lt;br /&gt;* 基於 unicode 的唯一識別符關鍵字&lt;br /&gt;* 繁簡關鍵字詞典分開維護, 以供第三方程式取用&lt;br /&gt;* 中文腳本改以 -c 執行, 以對應 python 命令&lt;br /&gt;&lt;br /&gt;    $ zhpy -c "印出 'hello'"&lt;br /&gt;&lt;br /&gt;* 繁簡關鍵字更新, 提高字典同步率&lt;br /&gt;* 用附檔名 .twpy, .cnpy 來區別繁簡體 zhpy 程式&lt;br /&gt;* 完整的測試&lt;br /&gt;  * 單元測試(unittest)&lt;br /&gt;  * 文件測試(doctest)&lt;br /&gt;  * 範例測試(example)&lt;br /&gt;  * 命令行測試(cmd line)&lt;br /&gt;&lt;br /&gt;本來說是會在 python 3000 發佈之後才出新版,&lt;br /&gt;不過這幾天 jiahua huang 提出了如英轉中, zhipy 互動直譯器的概念實作,&lt;br /&gt;zhpy 開發從其中擷取了不少精華, 受益頗多.&lt;br /&gt;例如簡中部份的字典也是從 zhipy 互動直譯器實作中更新,&lt;br /&gt;&lt;br /&gt;這版本在 zhpy 內部先作了一些改動,&lt;br /&gt;讓第三方程式更容易重用 zhpy, 繁簡關鍵字也都各有些更動, 好在兩種字典間取得較高的一致性.&lt;br /&gt;&lt;br /&gt;事實上用附檔名 .twpy, .cnpy 來區別繁簡體 zhpy 程式在目前 zhpy 中並沒有明顯功用. 不過對文件寫作跟直觀的識別上已有相&lt;br /&gt;當幫助.&lt;br /&gt;&lt;br /&gt;由於完整度的關係, interpreter 還不會隨著 zhpy 發佈,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3395594756714157404?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3395594756714157404/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3395594756714157404' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3395594756714157404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3395594756714157404'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy-07.html' title='zhpy 0.7版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-3807386848402703974</id><published>2007-08-22T11:32:00.000-07:00</published><updated>2007-10-30T11:32:48.100-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>zhpy 0.6版發佈</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;zhpy 0.6版 (代號 瘋狂鑽石)發佈, 主要更新如下:&lt;br /&gt;&lt;br /&gt;* 強化簡體中文支援&lt;br /&gt;  * 補足關鍵字表&lt;br /&gt;  * 附帶完整的繁簡體關鍵字測試用例&lt;br /&gt;* 中文腳本&lt;br /&gt;  * 加入了新的 scripting 能力, 可在 shell 中使用中文腳本&lt;br /&gt;* 穩定性&lt;br /&gt;  * 附帶 &gt;50 則測試用例&lt;br /&gt;  * 函式以 doctest 測試&lt;br /&gt;&lt;br /&gt;    $ zhpy -r "印出 'hello'"&lt;br /&gt;&lt;br /&gt;透過 "zhpy -r" 命令，現在要嘗試 zhpy 變得更加容易,&lt;br /&gt;而透過中文腳本(zhpy)來管理系統也不再是遙不可及的事.&lt;br /&gt;&lt;br /&gt;http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;特別致謝: "zhpy -r" 命令的主意來自 JiaHua Huang 的啟發&lt;br /&gt;&lt;br /&gt;PS:  zhpy 大致上的功能已經完整了, 之後的版本發佈會開始慢下來.&lt;br /&gt;下個版本釋出日期應該會在 python 3000 發佈之後&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-3807386848402703974?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/3807386848402703974/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=3807386848402703974' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3807386848402703974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/3807386848402703974'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy-06.html' title='zhpy 0.6版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-2484553741728531738</id><published>2007-08-19T11:33:00.000-07:00</published><updated>2007-10-30T11:33:51.510-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>zhpy 0.5 版發佈</title><content type='html'>哈囉:&lt;br /&gt;&lt;br /&gt;zhpy 0.5 已經發佈了, 主要是加入在 Python 程式中嵌入中文程式執行的函式 "zh_exec", 跟 unit test&lt;br /&gt;suite(針對繁體關鍵字).&lt;br /&gt;繁中部份開發已相對穩定下來了, 剩下簡中部份仍需補完,&lt;br /&gt;歡迎使用簡體中文的開發者加入幫忙補完簡中關鍵字,文檔, 與 unit test suite.&lt;br /&gt;也歡迎其他繁體中文開發者/使用者提供意見. 有新要求或 bug 可 po 在 http://code.google.com/p/zhpy/issues/list&lt;br /&gt;&lt;br /&gt;之所以急著發佈 0.5 是因為 0.5 加入了一個很酷的功能 -- zh_exec()&lt;br /&gt;zh_exec() 方便 python 使用者在 interpretor 中試用 zhpy:&lt;br /&gt;&lt;br /&gt;$ python&lt;br /&gt;&gt;&gt;&gt; from zhpy import zh_exec&lt;br /&gt;&gt;&gt;&gt; zh_exec("print 'hello'")&lt;br /&gt;hello&lt;br /&gt;&gt;&gt;&gt; zh_exec("印出 '哈囉'")&lt;br /&gt;哈囉&lt;br /&gt;&gt;&gt;&gt; zh_exec(a=1; 如果 a 為 1: 印出 'a = 1'")&lt;br /&gt;&lt;br /&gt;a = 1&lt;br /&gt;&lt;br /&gt;請前往 zhpy 官網下載/查詢訊息&lt;br /&gt;http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;也可查看 zhpy RoadMap&lt;br /&gt;http://code.google.com/p/zhpy/wiki/RoadMap&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-2484553741728531738?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/2484553741728531738/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=2484553741728531738' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2484553741728531738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/2484553741728531738'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy-05.html' title='zhpy 0.5 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-7626688643220160382</id><published>2007-08-17T11:34:00.000-07:00</published><updated>2007-10-30T11:34:42.576-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>zhpy 0.4 版發佈</title><content type='html'>哈囉各位:&lt;br /&gt;&lt;br /&gt;zhpy 0.4 已經發佈了,&lt;br /&gt;提供使用文件, 更多關鍵字, 外掛關鍵字,&lt;br /&gt;強化 command line 工具.&lt;br /&gt;加上 -p 參數, 可直接產生新檔案並運行&lt;br /&gt;&lt;br /&gt;$ zhpy -p hello.py&lt;br /&gt;compile to python and run: n_hello.py&lt;br /&gt;hello world&lt;br /&gt;$ ls&lt;br /&gt;hello.py n_hello.py&lt;br /&gt;&lt;br /&gt;zhpy 目前已經到 0.4 版囉, 歡迎 Python 新手提出對 zhpy 的各種疑問與不足.&lt;br /&gt;可以對項目產生貢獻的方法很多, 歡迎新的開發者加入喔 ^_^&lt;br /&gt;&lt;br /&gt;zhpy 的 svn 中提供一個在 Python 程式中嵌入中文程式執行的函式 "zh_exec",&lt;br /&gt;可以以如同 python exec 函式的用法來使用:&lt;br /&gt;&lt;br /&gt;$ python&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; import zhpy&lt;br /&gt;&gt;&gt;&gt; zhpy.zh_exec("print 'hello'")&lt;br /&gt;hello&lt;br /&gt;&gt;&gt;&gt; zhpy.zh_exec("印出 '哈囉'")&lt;br /&gt;哈囉&lt;br /&gt;&lt;br /&gt;這個功能會出現在下個版本  (0.5 版)  中.&lt;br /&gt;&lt;br /&gt;請前往 zhpy 官網查詢訊息&lt;br /&gt;http://code.google.com/p/zhpy/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-7626688643220160382?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/7626688643220160382/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=7626688643220160382' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7626688643220160382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/7626688643220160382'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy-04.html' title='zhpy 0.4 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-4577543133506225662</id><published>2007-08-13T11:38:00.000-07:00</published><updated>2007-10-30T11:39:32.107-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>zhpy 0.3 版發佈</title><content type='html'>zhpy 0.3 出了 http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;主要的更新是加入了一些標準關鍵字, 支援外掛自訂的關鍵字, 和更多的文件.&lt;br /&gt;&lt;br /&gt;例如要用 pygame 寫遊戲, 可以在程式所在目錄中加入一個 pygame.ini 檔紀錄外掛的關鍵字&lt;br /&gt;&lt;br /&gt;http://zhpy.googlecode.com/svn/trunk/examples/game/test.py&lt;br /&gt;http://zhpy.googlecode.com/svn/trunk/examples/game/pygame.ini&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-4577543133506225662?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/4577543133506225662/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=4577543133506225662' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4577543133506225662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/4577543133506225662'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy-03.html' title='zhpy 0.3 版發佈'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-850060029534274252.post-8916106845124521129</id><published>2007-08-09T11:35:00.000-07:00</published><updated>2007-10-30T11:38:04.459-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ReleaseNote'/><title type='text'>周蟒(zhpy) : 輕量的中蟒</title><content type='html'>周蟒(zhpy), 讓你可以用中文寫 Python 程式.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;特點:&lt;br /&gt;&lt;br /&gt; * 只有 8k 的中蟒&lt;br /&gt; * 可用 easy_install 安裝&lt;br /&gt; * 可以用 list comprehension, new style class 等 py2.4, py2.5 新功能的中蟒&lt;br /&gt; * 可以混用繁簡中英關鍵字&lt;br /&gt; * 可用中文(zhpy) source 生成 python source&lt;br /&gt; * 同樣的 code 應該也可以改成日蟒, 韓蟒 XD&lt;br /&gt;&lt;br /&gt;適用:&lt;br /&gt;&lt;br /&gt;初學者/中文腳本/教學用途&lt;br /&gt;&lt;br /&gt;設計思路:&lt;br /&gt;&lt;br /&gt;使用 pyparsing 查找取代中文關鍵字, 類別名稱, 定義名稱, 變量, 參數成英文 source 後執行.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;範例:&lt;br /&gt;&lt;br /&gt;允許使用命令執行&lt;br /&gt;&lt;br /&gt;zhpy hello.py&lt;br /&gt;&lt;br /&gt;(一般用 python hello.py)&lt;br /&gt;&lt;br /&gt;指定檔案可產生一般英文 python code&lt;br /&gt;&lt;br /&gt;zhpy hello.py nhello.py&lt;br /&gt;&lt;br /&gt;zhpy 構造相當簡單, 但效果卻不錯,&lt;br /&gt;&lt;br /&gt;在 google code 上建立了一個 zhpy project 可抓 source&lt;br /&gt;http://code.google.com/p/zhpy/&lt;br /&gt;&lt;br /&gt;歡迎有興趣的人加入開發或幫忙維護文件, 網站呀&lt;br /&gt;&lt;br /&gt;PS: 原始 idea 來自 HYRY 的 code&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/850060029534274252-8916106845124521129?l=zhpy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zhpy.blogspot.com/feeds/8916106845124521129/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=850060029534274252&amp;postID=8916106845124521129' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8916106845124521129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/850060029534274252/posts/default/8916106845124521129'/><link rel='alternate' type='text/html' href='http://zhpy.blogspot.com/2007/08/zhpy.html' title='周蟒(zhpy) : 輕量的中蟒'/><author><name>gaso lin</name><uri>https://profiles.google.com/112695256249584453237</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-RYFnmJigzcM/AAAAAAAAAAI/AAAAAAAAB6E/0c6RsEHTN-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
