使用python xlwt模块更新Excel工作表

我正在寻找更新我已经创build的Excel工作表与来自浏览器的Json数据。 当前的代码每次运行程序时都会生成一个新的工作表。

import requests import json import urllib import xlwt url = raw_input("Enter url:-") res = urllib.urlopen(url) data = res.read() data1 = json.loads(data) book = xlwt.Workbook(encoding="utf-8") sheet1 = book.add_sheet("AssetsReport0") colunm_count = 0 for title, value in data1.iteritems(): sheet1.write(0, colunm_count, title) sheet1.write(1, colunm_count, value) colunm_count += 1 file_name = "test1.xls"%() book.save(file_name) 

什么是我可以做到这一点的最好办法?