トップ 差分 一覧 ping ソース 検索 ヘルプ PDF RSS ログイン

Python 文字コードを指定してファイルを開く



目次



記事一覧

キーワード

Python 文字コードを指定してファイルを開く

[Python]

import codecs
fd = codecs.open(search_result_file, 'r', 'shift_jis')
    for l in fd:
       print l



YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto

Copyright© 矢木 浩人 All Rights Reserved.