XlsxWriter的简单使用:python向excel写入数据

准备练习数据

用fiddler捕获请求Twitter的返回数据,并将其复制粘贴存入txt文件。数据结构大致如下:

在这里插入图片描述

准备XlsxWriter包

安装XlsxWriter包

#使用pip下载并安装包(本机已安装过)
C:\Users\limj3>pip install Xlsxwriter
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: Xlsxwriter in d:\anaconda2\lib\site-packages (1.1.5)

#检查是否安装成功
C:\Users\limj3>python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 15:42:17) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>import xlsxwriter
>>>

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值