标签:xlsxwriter
1.install tools
pip install XlsxWriter
wget https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz
2.scripts
#coding: utf-8
import xlsxwriter
workbook = xlsxwriter.Workbook(‘demo1.xlsx‘)
worksheet = workbook.add_worksheet()
worksheet.set_column(‘A:A‘,20)
bold = workbook.add_format({‘bold‘:True})
worksheet.write(‘A1‘,‘Hello Old Wang‘,bold)
workbook.close()
本文出自 “守候者” 博客,请务必保留此出处http://shouhouzhe.blog.51cto.com/2351955/1955732
标签:xlsxwriter
原文地址:http://shouhouzhe.blog.51cto.com/2351955/1955732