Python创建Excel表格并写入数据之xlwt

本文为博主原创文章,未经博主允许不得转载。
本文链接: https://blog.csdn.net/u012325865/article/details/77676565
#!python3
#coding:utf-8

import xlwt
f = xlwt.Workbook()
sheet1 = f.add_sheet(r'sheet1', cell_overwrite_ok=True)
sheet1.write(0,0,"Name")
sheet1.write(0,1,"Conf")
sheet1.write(0,2,"Grid score")
sheet1.write(0,3,"Grid_vdw")
sheet1.write(0,4,"Grid_es")
sheet1.write(0,5,"Int_energy")

f.save('dockout.xls')

猜你喜欢

转载自blog.csdn.net/u012325865/article/details/77676565