码迷,mamicode.com
首页 > 其他好文 > 详细

XlsxWriter

时间:2017-08-12 15:31:00      阅读:121      评论:0      收藏:0      [点我收藏+]

标签: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

标签:xlsxwriter

原文地址:http://shouhouzhe.blog.51cto.com/2351955/1955732

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!