xdufacool/score_helper.py
def write_xls(form, xlspath, sheet_name="sheet"):
    """Write a form to xls file for uploading."""

    book = xlwt.Workbook()
    sheet = book.add_sheet(sheet_name)
    for r, row in enumerate(form):
        for c, value in enumerate(row):
            sheet.write(r, c, value)
    book.save(xlspath)
Write a form to xls file for uploading.
Write a form to xls file for uploading.
Write a form to xls file for uploading .
def write_xls(form, xlspath, sheet_name="sheet"):
    book = xlwt.Workbook()
    sheet = book.add_sheet(sheet_name)
    for r, row in enumerate(form):
        for c, value in enumerate(row):
            sheet.write(r, c, value)
    book.save(xlspath)
def write_xls ( form , xlspath , sheet_name = "sheet" ) : book = xlwt . Workbook ( ) sheet = book . add_sheet ( sheet_name ) for r , row in enumerate ( form ) : for c , value in enumerate ( row ) : sheet . write ( r , c , value ) book . save ( xlspath )
Write a form to xls file for uploading.
Write a form to xls file for uploading .
"""Write a form to xls file for uploading."""
form
xlspath
sheet_name