2008-03-01ãã1ã¶æéã®è¨äºä¸è¦§
difflib(2.1以é)ã®HtmlDiff(2.4以é)ã使ãã¨ã2ã¤ã®ããã¹ãã®å·®åãåå¾ãã¦ãHTMLã§ç°¡åã«åºåã§ãããè¡åä½ã ãã§ãªããæååä½ã®å·®åãæ示ãã¦ãããã®ã§ä¾¿å©ãwithã¹ãã¼ãã¡ã³ã(2.5以é)ã使ãã¨ããããªæãã from __future__ import with_staâ¦
ä¼ç¤¾(æ°¸åã·ã¹ãã ããã¸ã¡ã³ã)ã®æå¿ã§ãæ¬å®¶InfoQã®è¨äºã翻訳ãã¦InfoQ Japanã«æ²è¼ãã¦ãã¾ããRubyã¨ãã¢ã¸ã£ã¤ã«ç³»ã®ç¿»è¨³ãå°ãªãã®ã§ãã ã£ãããã£ã¡ããããã¨ããæ´»åã§ãããã¾ã®ã¨ããï¼ ã¦ã¼ã¶ã¹ãã¼ãªã¼ã®é©æ£ãµã¤ãº ç¶ç¶çãªãªã¼ã¹ã¯ãããâ¦
Python Imaging Library (PIL)ã試ãã¦ã¿ãããªãµã¤ãºã¨ãããããç°¡åãeasy_install pil ã§å ¥ãã import Image im = Image.open("foo.jpg") new_im = im.resize((1024, 768), Image.BICUBIC) new_im.save("foo2.jpg") (2008.3.18追è¨)ãã¨ãã°rorateã¯åâ¦
codecs.open ã使ãã®ãç°¡åã3çªç®ã®ãã©ã¡ã¼ã¿ã§ã¨ã³ã³ã¼ãã£ã³ã°ãæå®ããã from codecs import open in_file = open("before.txt", "r", "iso-2022-jp") out_file = open("after.txt", "w", "utf-8") for l in in_file: out_file.write(l) in_file.cloâ¦