'''
编写程序,输出九九乘法表
'''
import xlwt
wb=xlwt.Workbook(encoding='utf-8')
ws=wb.add_sheet("sheet1")
for i in range(0,9):
for j in range(0,i+1):
ws.write(i,j,"%d * %d = %d"%(j+1,i+1,(i+1)*(j+1)))
wb.save("九九乘法表.xls")
'''
编写程序,输出九九乘法表
'''
import xlwt
wb=xlwt.Workbook(encoding='utf-8')
ws=wb.add_sheet("sheet1")
for i in range(0,9):
for j in range(0,i+1):
ws.write(i,j,"%d * %d = %d"%(j+1,i+1,(i+1)*(j+1)))
wb.save("九九乘法表.xls")