Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
899 B
1
Indexable
Never
# excel
    if excel == True:

        # excel workbook
        workbook = xlsxwriter.Workbook(f'{workbook_name}.xlsx', {"nan_inf_to_errors": True})

        # excel worksheet
        worksheet = workbook.add_worksheet('Okay')
        line_count = 0

        # данные excel
        data = ('t, c', 'm, кг', 'Vx, м/с', 'Vy, м/с', 'x, м', 'y, м', 'h, м', 'V, м/с', 'r, км', 'theta, град', 'cap_theta_c, град', 'alpha, град', 'fi, град', 'delta_V_гр, м/с', 'delta_V_упр, м/с', 'cap_theta, град', 'nx, [б/р]', 'ny, [б/р]')
        for i, item in enumerate(data, 0):
            worksheet.write(line_count, i, item)

        line_count += 1
        data = (0, 3015, 0, 0, 0, 0, 0, 0, 1738000, 90, 90, 0, 90,'delta_V_гр 0', 0, 90, 0, 'ny 0')
        for i, item in enumerate(data, 0):
            worksheet.write(line_count, i, item)
Leave a Comment