import xlwt
wb= xlwt.Workbook()
sheet=wb.add_sheet(“九九表”)
sheet.write(0,0,‘0’)
for i in range(1,10):
for j in range(1,i+1):
sheet.write(i,j-1,str(j)+""+str(i)+"="+str(ij))
wb.save(“九九表.xls”)
import xlwt
wb= xlwt.Workbook()
sheet=wb.add_sheet(“九九表”)
sheet.write(0,0,‘0’)
for i in range(1,10):
for j in range(1,i+1):
sheet.write(i,j-1,str(j)+""+str(i)+"="+str(ij))
wb.save(“九九表.xls”)