We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e54556 commit 61a4222Copy full SHA for 61a4222
write_excel.py
@@ -0,0 +1,22 @@
1
+import xlwt
2
+
3
+workbook = xlwt.Workbook()
4
+sheet = workbook.add_sheet("contacts")
5
6
+header_font = xlwt.Font()
7
+header_font.name = 'Arial'
8
+header_font.bold = True
9
10
+header_style = xlwt.XFStyle()
11
+header_style.font = header_font
12
13
+sheet.write(0, 0, 'Name', header_style)
14
+sheet.write(0, 1, 'Email', header_style)
15
16
+sheet.write(1, 0, 'Julie Scott')
17
+sheet.write(1, 1, 'julie@toricode.com')
18
19
+sheet.write(2, 0, 'Harry Hernandez')
20
+sheet.write(2, 1, 'harry@toricode.com')
21
22
+workbook.save('contacts.xls')
0 commit comments