Jul-14-2019, 09:35 AM
I don't have access to a compiler, could someone, please, turn this python 3 code into an exe file and also test it?
The program should create a test.xlsx file with first (and only) page titled "1 lpp" which contains text from text.txt in a format like this:
1 2 3 4 5 6 7 8 9 10 11 12 |
import openpyxl as xl f = xl.Workbook() f.title = '1 lpp' sheet = wb.get_sheet_by_name( '1 lpp' ) text = open ( 'text.txt' ).read().split() for i in range ( len (text)): if i % 2 = = 0 : sheet.cell(row = 1 , column = i + 1 ) = text[i] else : sheet.cell(row = 2 , column = i + 1 ) = text[i] wb.save( 'test.xlsx' ) |
1 2 |
This an is example |