赞
踩
# # 增加公式 只支持单个单元格数据写入,无法读写现有的excel文件 # # import xlsxwriter # # workbook = xlsxwriter.Workbook('yyyd.xlsx') # # worksheet = workbook.sheetnames[0] # # for kk in range(30): # # worksheet.write_formula('Q'+str(kk), '=IF(A3>1,"Yes", "No")') # # # # workbook.close()
sht0.range('AB' + str(kk+2)).value = '=Z2+AA2'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。