<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>生活 &#124; 實驗場 @ ST</title>
	<atom:link href="http://shapable.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shapable.wordpress.com</link>
	<description>生活裏，包含這裏: 什麼都有，什麼都不奇怪</description>
	<lastBuildDate>Sat, 10 Oct 2009 13:56:24 +0000</lastBuildDate>
	<language>zh-tw</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='shapable.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/dadb4a3fef6395e0323c3b63808a56ee?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>生活 &#124; 實驗場 @ ST</title>
		<link>http://shapable.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://shapable.wordpress.com/osd.xml" title="生活 &#124; 實驗場 @ ST" />
	<atom:link rel='hub' href='http://shapable.wordpress.com/?pushpress=hub'/>
		<item>
		<title>List, Dictionaries &amp; Tuples Basics</title>
		<link>http://shapable.wordpress.com/2009/10/10/list-dictionaries-tuples-basics/</link>
		<comments>http://shapable.wordpress.com/2009/10/10/list-dictionaries-tuples-basics/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 12:21:04 +0000</pubDate>
		<dc:creator>shapable</dc:creator>
				<category><![CDATA[Python Basics]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[tuple]]></category>

		<guid isPermaLink="false">http://shapable.wordpress.com/?p=422</guid>
		<description><![CDATA[語法簡介 List var1 = [] (空的 List) var2 = [1, 2, 3] (assignment) var3 = ['str1', 'str2', ['sub1', 'sub2']] (巢狀宣告) var2.append(4)  and var2.extend([5, 6, 7])   (擴充語法) del var2[2]  and del var2[i:j] and var2.pop()  (shrinking) [1, 2, 3] + [4, 5, 6] (concatenation) print var2[2] (indexing methon) var3[0:2] = ['new1', 'new2'] (刪除+新置入字串) Dictionary D1 = {} [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=422&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><span style="color:#808000;">語法簡介</span></h3>
<blockquote>
<ol>
<li>List
<ol>
<li>var1 = [] <span style="color:#993300;">(空的 List)</span></li>
<li>var2 = [1, 2, 3]<span style="color:#993300;"> (assignment)</span></li>
<li>var3 = ['str1', 'str2', ['sub1', 'sub2']] <span style="color:#993300;">(巢狀宣告)</span></li>
<li>var2.append(4)  and var2.extend([5, 6, 7])   <span style="color:#993300;">(擴充語法)</span></li>
<li>del var2[2]  and del var2[i:j] and var2.pop()  <span style="color:#993300;">(shrinking)</span></li>
<li>[1, 2, 3] + [4, 5, 6]<span style="color:#993300;"> (concatenation)</span></li>
<li><span style="color:#993300;"><span style="color:#000000;">print var2[2] <span style="color:#993300;">(indexing methon)</span></span></span></li>
<li><span style="color:#993300;"><span style="color:#000000;">var3[0:2] = ['new1', 'new2'] <span style="color:#993300;">(刪除+新置入字串)</span></span></span></li>
</ol>
</li>
<li>Dictionary
<ol>
<li>D1 = {}<span style="color:#993300;"> (空的 Dictionary)</span></li>
<li>D2 = {&#8216;key1&#8242;: 1, &#8216;key2&#8242;:2}<span style="color:#993300;"> (Key &amp; the value)</span></li>
<li><span style="color:#993300;"><span style="color:#000000;">D2['ke3'] = 3</span> (新增)</span></li>
<li><span style="color:#993300;"><span style="color:#000000;">del D2['key3']</span> (刪除)<br />
</span></li>
<li>print D2['key1'] <span style="color:#993300;">(Indexing)</span></li>
<li>D3 = dict (zip (key_list, value_list))<span style="color:#993300;"> (construction)</span></li>
<li>&#8216;key1&#8242; in D2   and  D2.has_key(&#8216;key1&#8242;  <span style="color:#993300;"> (the memebership testing)</span></li>
</ol>
</li>
<li>Tuple
<ol>
<li>Tuple (almost = list), A Group/Set of items. 但內容不可變。</li>
<li> () <span style="color:#993300;">(空的 tuple)</span></li>
<li>t1 = (0, &#8216;str&#8217;, 1.2, 3)<span style="color:#993300;"> (four elements)</span></li>
<li>t1 = 0, &#8216;str&#8217;, 1.2, 3 <span style="color:#993300;">(另表達一種方法)</span></li>
<li>(1, 2) * 4 <span style="color:#993300;">(重覆)</span><br />
(1, 2, 1, 2, 1, 2, 1, 2)</li>
<li>t1[0] <span style="color:#993300;">(indexing)</span></li>
</ol>
</li>
</ol>
</blockquote>
<h3><span style="color:#808000;">當 Dictionary 遇上 simplejson</span></h3>
<blockquote><p>Source Code:</p>
<p>from django.utils import simplejson<br />
d2 = {&#8216;key1&#8242;:1, &#8216;key2&#8242;:2}<br />
test_string = simplejson.dumps(d2)</p>
<p>Output:<br />
{『key2&#8243;: 2, 『key1&#8243;: 1}</p></blockquote>
<br />Posted in Python Basics Tagged: dictionary, json, list, Python, tuple <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shapable.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shapable.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shapable.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shapable.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shapable.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shapable.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shapable.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shapable.wordpress.com/422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=422&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shapable.wordpress.com/2009/10/10/list-dictionaries-tuples-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a844ede90511d31d769cec84f07578a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shapable</media:title>
		</media:content>
	</item>
		<item>
		<title>Python Modules 大小事</title>
		<link>http://shapable.wordpress.com/2009/10/06/python-modules-%e5%a4%a7%e5%b0%8f%e4%ba%8b/</link>
		<comments>http://shapable.wordpress.com/2009/10/06/python-modules-%e5%a4%a7%e5%b0%8f%e4%ba%8b/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:06:55 +0000</pubDate>
		<dc:creator>shapable</dc:creator>
				<category><![CDATA[Python Basics]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://shapable.wordpress.com/?p=410</guid>
		<description><![CDATA[File Import 任一 .py附屬檔名 的python原始碼檔案都是一個module。 在同一 session (process)裏，相同的module只會實際被 import一次。 Simple Import Statements (1) import myfile myfile.funcCall() (2) from myfile import myAttr print myAttr (3) from myFile import *  # 複製所有的變數 (4) delete myModule # just like unload the specified moudle Python Module 路徑搜尋順序 (1) Top-Level File的所在目錄 (2) PYTHONPATH 定義的目錄 (3) Standard Library 的目錄 (4) .pth [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=410&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><span style="color:#808000;">File Import</span></h3>
<ol>
<li>任一 .py附屬檔名 的python原始碼檔案都是一個module。</li>
<li>在同一 session (process)裏，相同的module只會實際被 import一次。</li>
<li>Simple Import Statements<br />
(1) import myfile<br />
myfile.funcCall()</p>
<p>(2) from myfile import myAttr<br />
print myAttr</p>
<p>(3) from myFile import *  # 複製所有的變數<br />
(4) delete myModule # just like unload the specified moudle</li>
<li>Python Module 路徑搜尋順序<br />
(1) Top-Level File的所在目錄<br />
(2) <span style="color:#800000;">PYTHONPATH<span style="color:#000000;"> 定義的目錄<br />
(3) Standard Library 的目錄<br />
</span> <span style="color:#000000;">(4) .pth 檔案內的內容<br />
</span><span style="color:#000000;">.pth (即為 path之意) 為 Python特有之檔案格式。其內存有</span><span style="color:#000000;">使用者定義的額外搜尋目錄。</span></span></li>
</ol>
<h3><span style="color:#808000;">Package Import</span></h3>
<ol>
<li>Import 也可以直接指命目錄名稱，某目錄下意同某一 Package。如：<br />
import myDir # import 『myDir』 這個 package<br />
import myDir2.myModule</li>
<li>如要 import package, 則要 import 的目錄內需含有 __init__.py 檔。否則 import 將會失敗。</li>
</ol>
<br />Posted in Python Basics Tagged: import, package, Python <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shapable.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shapable.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shapable.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shapable.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shapable.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shapable.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shapable.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shapable.wordpress.com/410/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=410&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shapable.wordpress.com/2009/10/06/python-modules-%e5%a4%a7%e5%b0%8f%e4%ba%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a844ede90511d31d769cec84f07578a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shapable</media:title>
		</media:content>
	</item>
		<item>
		<title>Android, iPhone 及 Symbian OS 開發環境之比較</title>
		<link>http://shapable.wordpress.com/2009/10/05/android-iphone-%e5%8f%8a-symbian-os-%e9%96%8b%e7%99%bc%e7%92%b0%e5%a2%83%e4%b9%8b%e6%af%94%e8%bc%83/</link>
		<comments>http://shapable.wordpress.com/2009/10/05/android-iphone-%e5%8f%8a-symbian-os-%e9%96%8b%e7%99%bc%e7%92%b0%e5%a2%83%e4%b9%8b%e6%af%94%e8%bc%83/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:38:39 +0000</pubDate>
		<dc:creator>shapable</dc:creator>
				<category><![CDATA[Mobile Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[開發工具]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://shapable.wordpress.com/?p=393</guid>
		<description><![CDATA[Android iPhone Nokia 作業系統 Android 1.5 Android 1.6 (Linux Kernel Based) iPhone OS Series 40 Platform S60 Platform 開發工具 Eclipse Xcode NetBeans / Eclipse Carbide.c++(Eclipse) Language Java Objective-C J2ME Symbian C++ Java Python Posted in Mobile Programming Tagged: Android, Eclipse, 開發工具, iPhone, Language, Nokia<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=393&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="111">
<p align="center">
</td>
<td width="150">
<p align="center">Android</p>
</td>
<td width="150">
<p align="center">iPhone</p>
</td>
<td colspan="2" width="300">
<p align="center">Nokia</p>
</td>
</tr>
<tr>
<td width="111">
<p align="center">作業系統</p>
</td>
<td width="150">
<p align="center">Android 1.5</p>
<p align="center">Android 1.6</p>
<p align="center">(Linux Kernel Based)</p>
</td>
<td width="150">
<p align="center">iPhone OS</p>
</td>
<td width="150">
<p align="center">Series 40 Platform</p>
<p align="center">
</td>
<td width="150">
<p align="center">S60 Platform</p>
<p align="center">
</td>
</tr>
<tr>
<td width="111">
<p align="center">開發工具</p>
</td>
<td width="150">
<p align="center">Eclipse</p>
</td>
<td width="150">
<p align="center">Xcode</p>
</td>
<td width="150">
<p align="center">NetBeans / Eclipse</p>
</td>
<td width="150">
<p align="center">Carbide.c++(Eclipse)</p>
</td>
</tr>
<tr>
<td width="111">
<p align="center">Language</p>
</td>
<td width="150">
<p align="center">Java</p>
</td>
<td width="150">
<p align="center">Objective-C</p>
</td>
<td width="150">
<p align="center">J2ME</p>
</td>
<td width="150">
<p align="center">Symbian C++</p>
<p align="center">Java</p>
<p align="center">Python</p>
</td>
</tr>
</tbody>
</table>
<br />Posted in Mobile Programming Tagged: Android, Eclipse, 開發工具, iPhone, Language, Nokia <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shapable.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shapable.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shapable.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shapable.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shapable.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shapable.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shapable.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shapable.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=393&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shapable.wordpress.com/2009/10/05/android-iphone-%e5%8f%8a-symbian-os-%e9%96%8b%e7%99%bc%e7%92%b0%e5%a2%83%e4%b9%8b%e6%af%94%e8%bc%83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a844ede90511d31d769cec84f07578a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shapable</media:title>
		</media:content>
	</item>
		<item>
		<title>Python String (字串) 基礎</title>
		<link>http://shapable.wordpress.com/2009/10/02/python-string-%e5%ad%97%e4%b8%b2-%e5%9f%ba%e7%a4%8e/</link>
		<comments>http://shapable.wordpress.com/2009/10/02/python-string-%e5%ad%97%e4%b8%b2-%e5%9f%ba%e7%a4%8e/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 12:32:16 +0000</pubDate>
		<dc:creator>shapable</dc:creator>
				<category><![CDATA[Python Basics]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://shapable.wordpress.com/?p=379</guid>
		<description><![CDATA[字串表示式: Python提供兩種字串表式式  &#8211; 雙引號/單引號。例如: 『這是一個雙引號字串』 ,   &#8216;這是一個單引號字串&#8217; 然而對於Python語言而言，使用 單引號/雙引號 對於內部運作並無不同。其最主要目的為「讓你在字串表示中能更方便的使用引號」。 例如: &#8216;這個字串裏面請特別注意 『這裏』 &#8216; 整數的字串格式化 str(my_int) or repr(my_int) 長字串的使用 如果有跨行的字串則可於字串前後使用連續三個單引號來包含字串內容。例如： 』&#8217;這是第一行 這是第二行 這是第三行』&#8217; 另外因字串前後已有三個引號，故在長字串內的引號（不論單/雙）皆不需要再使用跳脫字元。例如： 』&#8217;這是第一行 這是第二行，但是不用』跳』囉 這是第三行』&#8217; Raw String (myString = r&#8217;This is a raw string&#8217;) Raw string最主要目的為「使字串用的跳脫字元失效」，也就是如，字串內的\n等，不再定義為它原本的換行功能。幾個範例如下： &#62;&#62;&#62;print r&#8217;String line one, \nString Line2&#8242; String line one, \nString Line2 &#62;&#62;&#62;print r&#8217;Hello, Who\&#8217;s site here?』 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=379&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><span style="color:#808000;">字串表示式:</span></h3>
<p>Python提供兩種字串表式式  &#8211; 雙引號/單引號。例如: 『這是一個雙引號字串』 ,   &#8216;這是一個單引號字串&#8217;</p>
<p>然而對於Python語言而言，使用 單引號/雙引號 對於內部運作並無不同。其最主要目的為「讓你在字串表示中能更方便的使用引號」。</p>
<p>例如: &#8216;這個字串裏面請特別注意 『這裏』 &#8216;</p>
<h3></h3>
<h3><span style="color:#808000;">整數的字串格式化</span></h3>
<blockquote><p>str(my_int) or repr(my_int)</p></blockquote>
<h3><span style="color:#808000;">長字串的使用</span></h3>
<p>如果有跨行的字串則可於字串前後使用連續三個單引號來包含字串內容。例如：</p>
<blockquote><p>』&#8217;這是第一行<br />
這是第二行<br />
這是第三行』&#8217;</p></blockquote>
<p>另外因字串前後已有三個引號，故在長字串內的引號（不論單/雙）皆不需要再使用跳脫字元。例如：</p>
<blockquote><p>』&#8217;這是第一行<br />
這是第二行，但是不用』跳』囉<br />
這是第三行』&#8217;</p></blockquote>
<h3></h3>
<h3><span style="color:#808000;">Raw String (myString = r&#8217;This is a raw string&#8217;)<br />
</span></h3>
<p>Raw string最主要目的為「使字串用的跳脫字元失效」，也就是如，字串內的\n等，不再定義為它原本的換行功能。幾個範例如下：</p>
<blockquote><p>&gt;&gt;&gt;print r&#8217;String line one, \nString Line2&#8242;<br />
String line one, \nString Line2</p>
<p>&gt;&gt;&gt;print r&#8217;Hello, Who\&#8217;s site here?』<br />
Hello, Who\&#8217;s site here?</p>
<p>跳脫字元的失效有一個唯一例外，就是最後一個字元的位置時。<br />
&gt;&gt;&gt;print r&#8217;Hello, this is invalid statement\&#8217;<br />
<span style="color:#ff0000;">為什麼？　因這樣的語法將使得直譯器搞不清楚字串是哪裡結束阿!?</span></p></blockquote>
<h3></h3>
<h3><span style="color:#808000;">Unicode String</span></h3>
<blockquote><p>&gt;&gt;&gt;print u&#8217;this is the unicode string&#8217;<br />
this is the unicode string</p></blockquote>
<h3></h3>
<h3><span style="color:#808000;">字串的連結</span></h3>
<blockquote><p>&gt;&gt;&gt;print &#8216;the part01 &#8216; + &#8216; concated with this one&#8217;<br />
the part01 concated with this one</p></blockquote>
<h3></h3>
<h3><span style="color:#808000;">字串格式化</span></h3>
<blockquote><p>&gt;&gt;&gt;stmt = 『%s, this is a %s sample』<br />
&gt;&gt;&gt;values= (&#8216;Part01&#8242;, &#8216;Python String&#8217;)<br />
&gt;&gt;&gt;print stmt % values<br />
Part01, this is a Python String sample</p></blockquote>
<br />Posted in Python Basics Tagged: Python, string <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shapable.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shapable.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shapable.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shapable.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shapable.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shapable.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shapable.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shapable.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=379&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shapable.wordpress.com/2009/10/02/python-string-%e5%ad%97%e4%b8%b2-%e5%9f%ba%e7%a4%8e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a844ede90511d31d769cec84f07578a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shapable</media:title>
		</media:content>
	</item>
		<item>
		<title>Joomla v1.5 預設樣板</title>
		<link>http://shapable.wordpress.com/2009/07/31/joomla-v1-5-%e9%a0%90%e8%a8%ad%e6%a8%a3%e6%9d%bf/</link>
		<comments>http://shapable.wordpress.com/2009/07/31/joomla-v1-5-%e9%a0%90%e8%a8%ad%e6%a8%a3%e6%9d%bf/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 12:14:57 +0000</pubDate>
		<dc:creator>shapable</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[beez]]></category>
		<category><![CDATA[ja_purity]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[rhuk_milkyway]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://shapable.wordpress.com/?p=307</guid>
		<description><![CDATA[The default template Jommla v1.5 offered. beez ja_purity rhuk_milkyway Posted in Joomla Tagged: beez, ja_purity, Joomla, preview, rhuk_milkyway, template<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=307&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The default template Jommla v1.5 offered.</p>
<ol>
<li>beez<br />
<a href="http://shapable.files.wordpress.com/2009/07/template_thumbnail.png"><img class="alignnone size-thumbnail wp-image-308" title="beez_template_thumbnail" src="http://shapable.files.wordpress.com/2009/07/template_thumbnail.png?w=150&#038;h=109" alt="beez_template_thumbnail" width="150" height="109" /></a></li>
<li>ja_purity<br />
<a href="http://shapable.files.wordpress.com/2009/07/template_thumbnail1.png"><img class="alignnone size-thumbnail wp-image-309" title="ja_purity_template_thumbnail" src="http://shapable.files.wordpress.com/2009/07/template_thumbnail1.png?w=150&#038;h=109" alt="ja_purity_template_thumbnail" width="150" height="109" /></a></li>
<li>rhuk_milkyway<br />
<a href="http://shapable.files.wordpress.com/2009/07/template_thumbnail2.png"><img class="alignnone size-thumbnail wp-image-310" title="rhuk_milkyway_template_thumbnail" src="http://shapable.files.wordpress.com/2009/07/template_thumbnail2.png?w=150&#038;h=109" alt="rhuk_milkyway_template_thumbnail" width="150" height="109" /></a></li>
</ol>
<br />Posted in Joomla Tagged: beez, ja_purity, Joomla, preview, rhuk_milkyway, template <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shapable.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shapable.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shapable.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shapable.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shapable.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shapable.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shapable.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shapable.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shapable.wordpress.com&amp;blog=7667606&amp;post=307&amp;subd=shapable&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shapable.wordpress.com/2009/07/31/joomla-v1-5-%e9%a0%90%e8%a8%ad%e6%a8%a3%e6%9d%bf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a844ede90511d31d769cec84f07578a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shapable</media:title>
		</media:content>

		<media:content url="http://shapable.files.wordpress.com/2009/07/template_thumbnail.png?w=150" medium="image">
			<media:title type="html">beez_template_thumbnail</media:title>
		</media:content>

		<media:content url="http://shapable.files.wordpress.com/2009/07/template_thumbnail1.png?w=150" medium="image">
			<media:title type="html">ja_purity_template_thumbnail</media:title>
		</media:content>

		<media:content url="http://shapable.files.wordpress.com/2009/07/template_thumbnail2.png?w=150" medium="image">
			<media:title type="html">rhuk_milkyway_template_thumbnail</media:title>
		</media:content>
	</item>
	</channel>
</rss>
