!!!pyExcelerator [Python][Python xlwk] !![xlwk|http://pypi.python.org/pypi/xlwt] ""現在メンテナンスされていないようだ。フォークした、[xlwk|http://pypi.python.org/pypi/xlwt] が[現在もメンテナンスされており、機能もも豊富とのこと。|http://stackoverflow.com/questions/1886744/use-pyexcelerator-to-generate-dynamic-excel-file-with-django-ensure-unique-tempo] *http://pyexcelerator.sourceforge.net/ !!ダウンロード *http://sourceforge.net/projects/pyexcelerator/ *pyexcelerator-0.6.4.1.zip !!参考 ::Django *http://japan.internet.com/developer/20080613/26.html !!インストール *解凍したフォルダから、以下を実行 >python setup.py install *C:\Python26\Lib\site-packages 以下にインストールされる ::インポートする >>> import pyExcelerator !!!例 !!データ作成 !ワークブック作成 >>> from pyExcelerator import * >>> wb = Workbook() >>> ws = wb.add_sheet('0') >>> for row in xrange(100): ... for col in xrange(10): ... ws.write(row, col, '%d, %d' % (row, col)) ... >>> wb.save(r'c:\work\xls\test01.xls') *test01.xls {{ref_image py_xls01.jpg}}