Google Reader shared items [2008-06-17]

阅读63次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: | 发表时间: 2008-06-17

<ul><li><a href='http://johnmayhk.wordpress.com/2008/06/17/perfect-rectangle-kirchhoffs-law/' title='link to ..'>完美矩形與基爾霍夫定律</a><br/><div>下圖顯示一個由 9 個不同大小的正方形拼砌出來的矩形(長方形),當中顯示的數字,代表該正方形的邊長。我們稱由 n 個不同大小的正方形拼砌成的矩形為「n 階完美矩形」,可見,下圖是一個 9 階完美矩形。 一些小學生都看懂的數學謎題書,或許也記有上述的題目或結果..</div></li> </ul>

鼓浪听涛全站搜索脚本

阅读110次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: youngking | 发表时间: 2008-05-30

自从鼓浪换了新站后,全站搜索就不能用了。因此今天写了一个全站搜索的脚本。新站用的是kbs,稍微修改下应该也可以用来搜索水木全站。 没有Python环境的可以下载我打包好的程序(后者)。 全站搜索脚本&#160;&#160; 全站搜索程序 # -*- coding:cp936 -*- #file:xmusearch.py from xmulister import BoardLister,ContentLister import urllib import sys type = sys.getfilesystemencoding() str =”http://210.34.0.13/bbsboa.php?group=%d” str2 = “http://210.34.0.13/bbsbfind.php?q=1&#38;board=%s&#38;tit...

鼓浪听涛全站搜索脚本

阅读104次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: youngking | 发表时间: 2008-05-30

自从鼓浪换了新站后,全站搜索就不能用了。因此今天写了一个全站搜索的脚本。新站用的是kbs,稍微修改下应该也可以用来搜索水木全站。 没有Python环境的可以下载我打包好的程序(后者)。 全站搜索脚本&#160;&#160; 全站搜索程序 # -*- coding:cp936 -*- #file:xmusearch.py from xmulister import BoardLister,ContentLister import urllib import sys type = sys.getfilesystemencoding() str =”http://210.34.0.13/bbsboa.php?group=%d” str2 = “http://210.34.0.13/bbsbfind.php?q=1&#38;board=%s...

鼓浪听涛全站搜索脚本

阅读119次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: | 发表时间: 2008-05-30

自从鼓浪换了新站后,全站搜索就不能用了。因此今天写了一个全站搜索的脚本。新站用的是kbs,稍微修改下应该也可以用来搜索水木全站。 没有Python环境的可以下载我打包好的程序(后者)。 全站搜索脚本   全站搜索程序 # -*- coding:cp936 -*- #file:xmusearch.py from xmulister import BoardLister,ContentLister import urllib import sys type = sys.getfilesystemencoding() str =”http://210.34.0.13/bbsboa.php?group=%d” str2 = “http://210.34.0.13/bbsbfind.php?q=1&board=%s&title=%s&title...

比较Python中的reverse和reversed

阅读93次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: youngking | 发表时间: 2008-05-22

某站的反向域名解析实在很ft,常常就把ip给反过来了。 reverse是list中的方法,python中string是不可变的,但list却是可以变的 ip = 179.168.160.220 revip =&#160; ip.split(’.')&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; #=&#62; [”179″,”168″,”160″,”220″] revip.reverse()&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&am...

比较Python中的reverse和reversed

阅读97次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: youngking | 发表时间: 2008-05-22

某站的反向域名解析实在很ft,常常就把ip给反过来了。 reverse是list中的方法,python中string是不可变的,但list却是可以变的 ip = 179.168.160.220 revip =&#160; ip.split(’.')&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; #=&#62; [”179″,”168″,”160″,”220″] revip.reverse()&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#1...

比较Python中的reverse和reversed

阅读115次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: | 发表时间: 2008-05-22

某站的反向域名解析实在很ft,常常就把ip给反过来了。 reverse是list中的方法,python中string是不可变的,但list却是可以变的 ip = 179.168.160.220 revip =  ip.split(’.')              #=> [”179″,”168″,”160″,”220″] revip.reverse()                  #=>[”220″,”160″,”168″,”179″] ...

Google Reader shared items [2008-05-17]

阅读108次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: | 发表时间: 2008-05-17

<ul><li><a href='http://ginstrom.com/scribbles/2008/05/17/counting-words-etc-in-an-html-file-with-python/' title='link to ..'>Counting words (etc.) in an HTML file with Python</a><br/><div>In a previous post, I wrote about how to count words, characters, and Asian characters using python. In this post I want to pull that together with code to get a word count...

北京歡迎你MV

阅读83次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: youngking | 发表时间: 2008-05-13

那天在公车上听到,回来就一直惦记着,当时看啊看一直没看到靓颖,回来看到了 :)<br /><!-- Feedsky flare --><a href="http://feed.feedsky.com/~flare/youngking?a=37d5c1a1d89a8ab8f9048ac1347476ab" target="_blank"><img src="http://feed.feedsky.com/~flare/youngking?i=37d5c1a1d89a8ab8f9048ac1347476ab" border="0"></a><a href="http://feed.feedsky.com/~flare/youngkin...

北京歡迎你MV

阅读73次,收藏0次,顶0次,踩0脚 | 订阅者:wayhome | 来源:繁星满天 | 文章作者: youngking | 发表时间: 2008-05-13

那天在公车上听到,回来就一直惦记着,当时看啊看一直没看到靓颖,回来看到了 :)<br /><!-- Feedsky flare --><a href="http://feed.feedsky.com/~flare/youngking?a=37d5c1a1d89a8ab8f9048ac1347476ab" target="_blank"><img src="http://feed.feedsky.com/~flare/youngking?i=37d5c1a1d89a8ab8f9048ac1347476ab" border="0"></a><a href="http://feed.feedsky.com/~flare/youngkin...