id:piro_sukeãããã¢ã¬ã³ã¬ãã£ã¦ãã®ãè¦ã¦ã¡ããã¨è©¦ãã¦ãããã¡ã«ãäºæ³å¤ãªã¨ããã§ç½ ã«ããã£ã¦ãã¾ã£ãbonlifeã§ããåããã¨ã§èºã人ã¯ãã¾ãããªããããªæ°ããã¾ãããåå¿é²ã¡ã¢ã§ãã csvã¢ã¸ã¥ã¼ã«ã§æ¥æ¬èªãæ±ãå ´åã«æ°ãã¤ããªãã¨æ²ããæ°æã¡ã«ãªã£ã¦ãã¾ãããããã¾ããããã¨ããã話ã ãµã³ãã«1 sys.getdefaultencoding() ã§å¾ãããæåã³ã¼ã㯠cp932 ãã¡ã¤ã«ã®æåã³ã¼ã㯠cp932 åºåããCSVã®æåã³ã¼ã㯠cp932 # -*- coding: cp932 -*- import sys import csv import codecs print "default encoding : %s" % (sys.getdefaultencoding()) f = codecs.open('out.csv','wb','cp932
{{#tags}}- {{label}}
{{/tags}}