<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>python in thailand</title><link>http://pythai.blogspot.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PythonInThailand" /><description>import python
for everyone in thailand:
    happycoding()</description><language>en</language><managingEditor>noreply@blogger.com (be)</managingEditor><lastBuildDate>Thu, 16 May 2013 01:05:15 PDT</lastBuildDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">44</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><feedburner:info uri="pythoninthailand" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>import python for everyone in thailand: happycoding()</itunes:subtitle><itunes:summary>import python for everyone in thailand: happycoding()</itunes:summary><feedburner:browserFriendly></feedburner:browserFriendly><item><title>PHP vs Python vs Ruby</title><link>http://pythai.blogspot.com/2012/02/php-vs-python-vs-ruby.html</link><category>ruby</category><category>python</category><category>php</category><author>noreply@blogger.com (be)</author><pubDate>Wed, 22 Feb 2012 19:46:31 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-4106622580389496028</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://www.udemy.com/blog/wp-content/uploads/2012/01/PROGRAMMING-LANGUAGE-3-620x3450.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.udemy.com/blog/wp-content/uploads/2012/01/PROGRAMMING-LANGUAGE-3-620x3450.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
จาก &lt;a href="http://www.blognone.com/news/29974/%E0%B8%AA%E0%B8%87%E0%B8%84%E0%B8%A3%E0%B8%B2%E0%B8%A1%E0%B8%A3%E0%B8%B0%E0%B8%AB%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%87-php-python-%E0%B9%81%E0%B8%A5%E0%B8%B0-ruby-%E0%B8%A8%E0%B8%B6%E0%B8%81%E0%B8%99%E0%B8%B5%E0%B9%89%E0%B9%83%E0%B8%84%E0%B8%A3%E0%B9%80%E0%B8%AB%E0%B8%99%E0%B8%B7%E0%B8%AD%E0%B9%83%E0%B8%84%E0%B8%A3"&gt;Blognone&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-23T10:46:31.727+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>python ide online in Codecademy</title><link>http://pythai.blogspot.com/2012/01/python-ide-online-in-codecademy.html</link><category>ide</category><category>online</category><category>python</category><category>codecademy</category><author>noreply@blogger.com (be)</author><pubDate>Sun, 08 Jan 2012 22:37:05 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-1488178239519823607</guid><description>ช่วงนี้กระแส &lt;a href="http://www.codecademy.com/"&gt;Codecademy &lt;/a&gt;มาแรงมาก จากเดิมมีแต่ภาษา javascript ทางเวบเลยเพิ่มภา๋ษาอื่นเพิ่มเติมได้แก่ Ruby และ Python แต่ทั้งสองภาษาอยู่ในสถานะ Lab ยังไม่มี Course ต้องรอสักพัก ถ้ามี Course ของ Python เมื่อไรจะมา Blog เพิ่มเติมครับ&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://labs.codecademy.com/"&gt;labs.codecademy.com&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-09T13:37:05.443+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>[Book] Python Programming with the java class libraries</title><link>http://pythai.blogspot.com/2012/01/book-python-programming-with-java-class.html</link><category>jython</category><category>python</category><category>book</category><author>noreply@blogger.com (be)</author><pubDate>Sun, 01 Jan 2012 17:56:30 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-4786124243375307210</guid><description>&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="http://static1.pookebook.com/wp-content/uploads/2011/08/python-programming-with-the-javatm-class-libraries-a-tutorial-for-building-web-and-enterprise-applications-with-jython-v-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://static1.pookebook.com/wp-content/uploads/2011/08/python-programming-with-the-javatm-class-libraries-a-tutorial-for-building-web-and-enterprise-applications-with-jython-v-1.jpg" width="243" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-02T08:56:30.983+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Python Programming Tutorial From Youtube</title><link>http://pythai.blogspot.com/2011/12/python-programming-tutorial-from.html</link><category>video</category><category>tutorial</category><category>python</category><author>noreply@blogger.com (be)</author><pubDate>Mon, 19 Dec 2011 22:56:47 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-4562423211141361312</guid><description>&lt;ol&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=4Mf0h3HphEA"&gt;Installing Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=YW8jtSOTRAU"&gt;Numbers and Math&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=667ZeuZ0Q8M"&gt;Variables&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=y-0lbZGdmIg"&gt;Modules and Functions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=-lfWzPxOJQ8"&gt;How to Save Your Programs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=9v1HcKR39qw"&gt;Strings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=LBJWWjDc7wM"&gt;More on Strings&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=qsTdaxahTsM"&gt;Raw Input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=XWQ0cyCrY7w"&gt;Sequences and Lists&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=_IySULAqE_k"&gt;Slicing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=2IEePwMAb5Y"&gt;Editing Sequences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=96Wr1OO-4d8"&gt;More List Functions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=iD6a0G8MnjA"&gt;Slicing Lists&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=ZQywX4uGIfw"&gt;Intro to Methods&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=rTaMwHjvUAs"&gt;More Methods&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=qUncPnnVkU0"&gt;Sort and Tuples&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=pUA6b86U08c"&gt;Strings n Stuff&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=5t4582nFP1c"&gt;Cool String Methods&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt; &lt;a href="http://www.youtube.com/watch?v=2j7ox_zqM4g"&gt;Dictionary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=II5WTVvryvk"&gt;If Statement &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=g1maz1ynR74"&gt;else and elif&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=_HJTN1JRgC8"&gt;Nesting Statements&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=E-s9sXB0XwY"&gt;Comparison Operators&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=cq-fGQZKLek"&gt;And and Or &lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-20T13:56:47.985+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Readers Choice Awards 2011 [Linux Journal]</title><link>http://pythai.blogspot.com/2011/12/readers-choice-awards-2011-linux.html</link><category>award</category><author>noreply@blogger.com (be)</author><pubDate>Wed, 07 Dec 2011 21:42:07 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-8884695951545436242</guid><description>Python ได้รับแรงโหวตจากผู้อ่าน Linux Journal ให้เป็นอันดับ 1 ใน 2 สาขาได้แก่ Best Programming Language, Best Scripting Language&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
รางวัลอื่นดูได้จาก &lt;a href="http://www.linuxjournal.com/slideshow/readers-choice-2011?page=27"&gt;http://www.linuxjournal.com/slideshow/readers-choice-2011?page=27&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-08T12:42:07.094+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to Think Like a Computer Scientist</title><link>http://pythai.blogspot.com/2011/11/how-to-think-like-computer-scientist.html</link><category>python</category><category>data structure</category><category>book</category><author>noreply@blogger.com (be)</author><pubDate>Tue, 29 Nov 2011 18:45:24 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-1351206744994961317</guid><description>เรียน Computer Scientist ด้วย Python&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://openbookproject.net/thinkcs/python/english2e/index.html"&gt;http://openbookproject.net/thinkcs/python/english2e/index.html&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-30T09:45:24.609+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Python on Google+</title><link>http://pythai.blogspot.com/2011/11/python-on-google.html</link><category>social</category><category>python</category><category>google</category><author>noreply@blogger.com (be)</author><pubDate>Tue, 29 Nov 2011 18:46:32 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-5945504527014541712</guid><description>Python ก็มี &lt;a href="https://plus.google.com/112535575746341781940"&gt;Google+&lt;/a&gt; แล้วนะครับ ไป Follow กันได้</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-30T09:46:32.835+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>IronPython 2.7.1</title><link>http://pythai.blogspot.com/2011/11/ironpython-271.html</link><category>python</category><category>IronPython</category><author>noreply@blogger.com (be)</author><pubDate>Thu, 24 Nov 2011 00:44:06 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-1345882552210554845</guid><description>&lt;a href="http://ironpython.codeplex.com/releases/view/62475"&gt;IronPython 2.7.1&lt;/a&gt; ปรับสถานะจาก beta เป็น released แล้วครับ</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-24T15:44:06.415+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>PyPy 1.7</title><link>http://pythai.blogspot.com/2011/11/pypy-17.html</link><category>python</category><category>pypy</category><author>noreply@blogger.com (be)</author><pubDate>Tue, 22 Nov 2011 22:46:01 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-171520949633171527</guid><description>&lt;div&gt;&lt;a href="http://pypy.org/download.html"&gt;PyPy 1.7&lt;/a&gt; มาแล้ว&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;เวอร์ชั่นนี้รองรับ x86 ทั้งหลายได้แก่  Linux 32/64, Mac OS X 32/64 และ Windows 32 ส่วน Windows 64 กำลังตามมา&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ซึ่งได้แก้ไขข้อบกพร่องต่างๆ และปรับปรุงความเร็ว โดยมีความเร็วเพิ่มขึ้นประมาณ 30% จากเวอร์ชั่น PyPy 1.6 และ มีความเร็วเป็น 20 เท่าของ benchmark&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;via &lt;a href="http://morepypy.blogspot.com/2011/11/pypy-17-widening-sweet-spot.html"&gt;http://morepypy.blogspot.com/2011/11/pypy-17-widening-sweet-spot.html&lt;/a&gt;&lt;/div&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-23T13:46:01.279+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>assert statements</title><link>http://pythai.blogspot.com/2010/01/assert-statements.html</link><category>assert</category><category>statement</category><author>noreply@blogger.com (be)</author><pubDate>Mon, 25 Jan 2010 10:15:02 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-8698657528787678826</guid><description>คำสั่ง assert เป็นการที่จะให้โปรแกรมนั้นแสดง Error AssertionError ถ้าเงื่อนไขนั้นไม่ถูกต้อง ดูตัวอย่างจะง่ายกว่า&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="python"&gt;&lt;br /&gt;a,b = 1,2&lt;br /&gt;assert a == b, 'Hello'&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;เมื่อรันโปรแกรมจะแสดง Error&lt;br /&gt;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;File "C:\Documents and Settings\be\Desktop\assert.py", line 2, in &lt;module&gt;&lt;br /&gt;  assert a == b, 'Hello'&lt;br /&gt;AssertionError: Hello&lt;br /&gt;&lt;br /&gt;แต่ถ้าใส่ค่า a กับ b เท่ากันก็จะไม่เกิด error&lt;/module&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-26T01:15:02.733+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><title>zip function</title><link>http://pythai.blogspot.com/2010/01/zip-function.html</link><category>function</category><category>zip</category><author>noreply@blogger.com (be)</author><pubDate>Thu, 21 Jan 2010 22:52:01 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-5379992601525525007</guid><description>บล๊อกแรกของปีสั้นๆล่ะกันนะ ^_^&lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="python"&gt;&lt;br /&gt;a = [1,2,3]&lt;br /&gt;b = [4,5,6]&lt;br /&gt;&lt;br /&gt;print zip(a,b)&lt;br /&gt;&lt;br /&gt;#[(1, 4), (2, 5), (3, 6)]&lt;br /&gt;&lt;/pre&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-22T13:52:01.743+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>PyCon APAC</title><link>http://pythai.blogspot.com/2009/10/pycon-apac.html</link><category>conference</category><category>python</category><author>noreply@blogger.com (be)</author><pubDate>Mon, 12 Oct 2009 05:29:12 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-7693344848333756397</guid><description>อ่านได้ที่ &lt;a href="http://www.narisa.com/forums/index.php?showtopic=29527"&gt;Narisa&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T19:29:12.008+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>python to exe</title><link>http://pythai.blogspot.com/2009/10/python-to-exe.html</link><category>exe</category><category>python</category><category>windows</category><category>module</category><author>noreply@blogger.com (be)</author><pubDate>Sat, 03 Oct 2009 22:05:53 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-1337979262171470936</guid><description>&lt;a href="http://www.py2exe.org/"&gt;py2exe&lt;/a&gt; เป็นโมดูลที่ใช้ทำไพธอนให้เป็นไฟล์ exe เพื่อใช้ทำงานใน window</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-04T12:05:53.512+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Gato</title><link>http://pythai.blogspot.com/2009/10/gato.html</link><category>python</category><category>graph</category><category>module</category><author>noreply@blogger.com (be)</author><pubDate>Sat, 03 Oct 2009 07:22:03 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-5293864437664518859</guid><description>&lt;a href="http://gato.sourceforge.net/index.html"&gt;Gato&lt;/a&gt; : Graph Animation Toolbox</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-03T21:22:03.276+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Skulpt</title><link>http://pythai.blogspot.com/2009/09/skulpt.html</link><category>python</category><category>browser</category><author>noreply@blogger.com (be)</author><pubDate>Wed, 23 Sep 2009 18:35:50 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-5677136807967143035</guid><description>&lt;a href="http://www.skulpt.org/"&gt;Skulpt&lt;/a&gt; เป็น&lt;a href="http://python.org"&gt;ไพธอน&lt;/a&gt;บนเวบไซต์อีกตัวที่หนึ่งที่น่าสนใจ สามารถใช้งานได้เลยไม่ต้องลงโปรแกรม</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-24T08:35:50.854+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>pymat</title><link>http://pythai.blogspot.com/2009/09/pymat.html</link><category>python</category><category>matlab</category><category>module</category><author>noreply@blogger.com (be)</author><pubDate>Tue, 15 Sep 2009 00:28:02 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-5731137922715756540</guid><description>&lt;a href="http://pymat.sourceforge.net/"&gt;pymat&lt;/a&gt; is MATLAB engine for Python</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-15T14:28:02.058+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Try Python</title><link>http://pythai.blogspot.com/2009/09/try-python.html</link><category>python</category><category>browser</category><author>noreply@blogger.com (be)</author><pubDate>Thu, 03 Sep 2009 00:44:48 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-4006157193706491870</guid><description>อยากลองไพธอน แต่ไม่อยากลงโปรแกรม ใช้ &lt;a href="http://www.trypython.org/"&gt;TryPython&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-03T14:44:48.215+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>pythonic</title><link>http://pythai.blogspot.com/2009/08/pythonic.html</link><category>pythonic</category><category>python</category><author>noreply@blogger.com (be)</author><pubDate>Thu, 03 Sep 2009 00:45:15 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-3025989579947937340</guid><description>เขียน python มาตั้งนานเพิ่งจะเคยได้ยินคำว่า pythonic ไปหาเจอ &lt;a href="http://sugree.com/"&gt;sugree&lt;/a&gt; เขียนไว้ที่ &lt;a href="http://www.codenone.com/node/134"&gt;codenone&lt;/a&gt; อ่านแล้วเข้าใจได้ง่ายดีเลยนำมาแปะไว้</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-03T14:45:15.995+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>User Interface for Python</title><link>http://pythai.blogspot.com/2009/08/user-interface-for-python.html</link><category>Tkinter</category><category>Urwid</category><category>ui</category><author>noreply@blogger.com (be)</author><pubDate>Tue, 06 Dec 2011 22:31:12 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-2936339670921777524</guid><description>&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://docs.python.org/library/tkinter.html"&gt;Tkinter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://excess.org/urwid/"&gt;Urwid&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-07T13:31:12.992+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>NLTK</title><link>http://pythai.blogspot.com/2009/08/nltk.html</link><category>nlp</category><category>python</category><category>module</category><author>noreply@blogger.com (be)</author><pubDate>Fri, 14 Aug 2009 08:43:13 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-4441649827433520986</guid><description>&lt;a href="http://www.nltk.org/"&gt;Natural Language Toolkit (NLTK)&lt;/a&gt; เป็นโมดูลของไพธอนเกี่ยวกับงานทางด้าน NLP มีฟังก์ชั่นการทำงานที่ครบครัน เช่น Corpus readers, Tokenizers, Parsers, Classifiers, Clusterers, Metrics และอื่นๆ มี Corpus ให้ใช้ทดสอบถึง 60 Corpus</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-14T22:43:13.082+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Python SDK version 1.2.4 for Google App Engine</title><link>http://pythai.blogspot.com/2009/08/python-sdk-version-124-for-google-app.html</link><category>news</category><category>python</category><category>new version</category><category>google app engine</category><author>noreply@blogger.com (be)</author><pubDate>Thu, 06 Aug 2009 19:34:34 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-7859858961492586946</guid><description>Python SDK version 1.2.4 ออกมาแล้ว&lt;br /&gt;Google App Engine ได้ปล่อยตัว SDK ในภาษาไพธอนเวอร์ชั่นใหม่ออกมาซึ่งสามารถดู&lt;br /&gt;รายละเอียดเพิ่มเติม &lt;a href="http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes"&gt;ที่นี่&lt;/a&gt;&lt;br /&gt;ดาวโหลดได้ &lt;a href="http://code.google.com/appengine/downloads.html"&gt;ที่นี่&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-07T09:34:34.748+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>PLY (Python Lex and Yacc)</title><link>http://pythai.blogspot.com/2009/07/ply-python-lex-and-yacc.html</link><category>yacc</category><category>tool</category><category>python</category><category>lex</category><category>module</category><author>noreply@blogger.com (be)</author><pubDate>Mon, 14 Sep 2009 21:46:36 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-5417194579632851370</guid><description>&lt;a href="http://www.dabeaz.com/ply/"&gt;PLY&lt;/a&gt; เป็นเครื่องมือในการทำ Lex กับ Yacc โดยใช้ภาษาไพธอน</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-15T11:46:36.138+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Edit in place</title><link>http://pythai.blogspot.com/2009/07/edit-in-place.html</link><category>example</category><category>edit</category><category>file</category><category>python</category><category>inplace</category><author>noreply@blogger.com (be)</author><pubDate>Sat, 11 Jul 2009 22:52:21 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-8004103201852497178</guid><description>inputfile.txt&lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;goodbye&lt;br /&gt;hello&lt;br /&gt;see you later!&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;edit.py&lt;br /&gt;&lt;pre name="code" class="python"&gt;&lt;br /&gt;import fileinput&lt;br /&gt;for lines in fileinput.FileInput("inputfile.txt", inplace=1): ## edit file in place&lt;br /&gt;    lines = lines.replace("hello","hi")&lt;br /&gt;    print lines.replace('\n','') ## although this prints the line, the file will be modified.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;inputfile.txt&lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;goodbye&lt;br /&gt;hi&lt;br /&gt;see you later!&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;จาก &lt;a href="http://ubuntuforums.org/archive/index.php/t-314323.html"&gt;ubuntuforums&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-12T12:52:21.615+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Sphinx</title><link>http://pythai.blogspot.com/2009/07/sphinx.html</link><category>python</category><category>generator</category><category>document</category><category>module</category><author>noreply@blogger.com (be)</author><pubDate>Mon, 14 Sep 2009 21:47:49 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-3904350051998056517</guid><description>&lt;a href="http://sphinx.pocoo.org/"&gt;Sphinx&lt;/a&gt; เป็นเครื่องมือที่ใช้ในการสร้างคู่มือให้กับ &lt;a href="http://python.org/"&gt;python&lt;/a&gt;</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-15T11:47:49.553+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Random in Python</title><link>http://pythai.blogspot.com/2009/06/random-in-python.html</link><category>example</category><category>random</category><category>python</category><author>noreply@blogger.com (be)</author><pubDate>Mon, 22 Jun 2009 20:41:32 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4347207939863291077.post-6915546269373225427</guid><description>&lt;pre name="code" class="python"&gt;&lt;br /&gt;&gt;&gt;&gt; import random&lt;br /&gt;&gt;&gt;&gt; random.random()        # เป็นการสุ่ม ตัวเลขที่มีทศนิยม (float) ระหว่าง 0.0 &lt;= x &lt; 1.0&lt;br /&gt;0.37444887175646646&lt;br /&gt;&gt;&gt;&gt; random.uniform(1, 10)  # เป็นการสุ่ม ตัวเลขที่มีทศนิยม (float)ระหว่าง 1.0 &lt;= x &lt; 10.0&lt;br /&gt;1.1800146073117523&lt;br /&gt;&gt;&gt;&gt; random.randint(1, 10)  # เป็นการสุ่ม ตัวเลขจำนวนเต็ม (Integer) ระหว่าง 1 ถึง 10&lt;br /&gt;7&lt;br /&gt;&gt;&gt;&gt; random.randrange(0, 101, 2)  # เป็นการสุ่ม ตัวเลขจำนวนเต็ม (Integer) ระหว่าง 1 ถึง 100 แต่จะสุ่มตามเลขที่เพิ่มค่าทีละ 2&lt;br /&gt;26&lt;br /&gt;&gt;&gt;&gt; random.choice('abcdefghij')  # สุ่มเลือกตัวอักษร&lt;br /&gt;'c'&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; items = [1, 2, 3, 4, 5, 6, 7]&lt;br /&gt;&gt;&gt;&gt; random.shuffle(items)  # สลับค่าใน list แบบสุ่ม&lt;br /&gt;&gt;&gt;&gt; items&lt;br /&gt;[7, 3, 2, 5, 6, 4, 1]&lt;br /&gt;&lt;br /&gt;&gt;&gt;&gt; random.sample([1, 2, 3, 4, 5],  3)  # เลือกค่าใน list มา 3 ค่า&lt;br /&gt;[4, 1, 5]&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;จาก Python Document</description><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-23T10:41:32.517+07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><media:rating>nonadult</media:rating></channel></rss>
