Pythonめも
http://www.diveintopython.org/xml_processing/index.html
http://python.g.hatena.ne.jp/mhrs/20060531/p2
ftputil - Trac http://ftputil.sschwarzer.net/trac The ftputil Python library is a high-level interface to the ftplib module. The FTPHost objects generated with ftputil allow many operations similar to those of os and os.path.
HowTo/Sorting http://wiki.python.org/moin/HowTo/Sorting 後半はおれには難しすぎ…
PythonMatrix:辞書って便利! http://python.matrix.jp/tips/container/dict.html やっぱ、辞書っておもしれーPythonMatrix:Python Tips http://python.matrix.jp/tips/
http://www.effbot.org/zone/librarybook-index.htm Based in part on over 3,000 newsgroup articles written by Python veteran Fredrik Lundh since 1995, this book provides brief descriptions and sample scripts for all standard modules in the Py…
http://zephyrfalcon.org/labs/beginners_mistakes.html This article highlights a few common mistakes, including some I made myself.
http://www.gnosis.cx/TPiP/codes.html Text Processing in Python作者: David Mertz出版社/メーカー: Addison-Wesley Professional発売日: 2003/06/02メディア: ペーパーバック クリック: 11回この商品を含むブログ (2件) を見る
>>> import md5 >>> f = open('D:\download\python223jp-20030608.exe', 'rb') >>> s = f.read() >>> m = md5.new() >>> m.update(s) >>> m.hexdigest() 'cdcdd656292dd3414175708eb87c2e49' 15.2 md5 -- MD5 メッセージダイジェストアルゴリズム http://www…
Python2.4用Kaaedit http://gembook.jp/tsum/page.pys?wiki=%7ENewsSummary%2F1137292336
リストのsortとか >>> mon_list = ['2005/1', '2005/9', '2005/2', '2003/8', '2005/8'] >>> mon_list ['2005/1', '2005/9', '2005/2', '2003/8', '2005/8'] >>> mon_list.sort() >>> mon_list ['2003/8', '2005/1', '2005/2', '2005/8', '2005/9'] 書き方と…
writeback=Trueではまったので書いておく。 デフォルトでは、永続的な辞書の可変エントリに対する変更をおこなっても、自動的にファイルには書き戻されません。オプションの writeback パラメタが True に設定されていれば、アクセスされたすべてのエントリ…
http://cheeseshop.python.org/pypi/WMI/1.0rc1Tim Golden's Python Stuff: wmi http://timgolden.me.uk/python/wmi.html
Python Wrappers for Ogg, Vorbis, and Ao http://www.andrewchatham.com/pyogg/pyogg/pyvorbisを使ってみよう http://pine.zero.ad.jp/~zbm45538/tech/python/pyogg.html
4.6 StringIO -- ファイルのように文字列を読み書きする http://www.python.jp/doc/release/lib/module-StringIO.html Chapter 10. Scripts and Streams http://diveintopython.org/scripts_and_streams/index.html#kgp.openanything.stringio.example lines…
from HTMLParser import HTMLParser, HTMLParseError class MyHTMLParser(HTMLParser): def handle_data(self, data): data = data.strip(" \t\r\n") if data: print 'Data: "%s"' % data def handle_starttag(self, tag, attrs): print "Encountered the bi…
http://rgruet.free.fr/#QuickRef
blogSetomits : Pythonでグラフ描き http://matatabi.homeip.net/blog/setomits/355blogSetomits : Pythonでグラフ描き 2 http://matatabi.homeip.net/blog/setomits/357HTMLをDOMにしてみようかな・・・ ― Emerge Technology http://www.liris.org/blog/646/
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may…
>>> f = open("d:/postteen/python/memo/aa.txt", "r") >>> f.tell() 0L >>> f.seek(1) >>> f.readline() '11111111111111111111\n' >>> f.tell() 23L >>> f.readline() '222222222222222222222\n'>>> buf = "" >>> f.tell() 117L >>> f.seek(0) >>> for lin…
http://www.onlamp.com/pub/a/python/2005/06/02/logging.html
http://newworld.ddo.jp/wiki/PythonSpeed PythonSpeed - Python の速度改善のテクニックより
http://lightson.dip.jp/zope/ZWiki/PythonRecipe kinnekoの日記 - Python Recipe Bookより
http://ash1no0to.dyndns.org/htdocs/archives/2005/04/pythondelicious_1.html 読書記録ChangeLogより
http://lowlife.jp/yasusii/weblog/2005/03/08.html
>>> d1 = {"i": {"total_cnt": 0, "Su": 0, "Mo": 0}, "o":{"total_cnt": 0, "Su": 0, "Mo": 0}} >>> d1.items() [('i', {'Mo': 0, 'total_cnt': 0, 'Su': 0}), ('o', {'Mo': 0, 'total_cnt': 0, 'Su': 0})] >>> for i, o in d1.items(): ... print i, o ...…
正規表現 HOWTO http://www.python.jp/Zope/articles/tips/regex_howto
>>> p = {'ftpd[001]': [111, 222]} >>> p {'ftpd[001]': [111, 222]} >>> p['ftpd[001]'] [111, 222] >>> p['ftpd[001]'][1] 222 >>> p['ftpd[001]'][1] - p['ftpd[001]'][0] 111 >>> p['ftpd[001]'][0] 111 >>> p['ftpd[001]'][0] = 555 >>> p['ftpd[001]'…
>>> t = time.strptime("Dec 5 21:41:49 2004","%b %d %H:%M:%S %Y") >>> t2 = time.strptime("Dec 5 22:41:49 2004","%b %d %H:%M:%S %Y") >>> t2 - t Traceback (most recent call last): File "", line 1, in ? TypeError: unsupported operand type(s) f…