프로그래밍언어/Python

파이썬 엑셀

부산딸랑이 2020. 12. 5. 18:04

import win32com.client

 

excel = win32com.client.Dispatch("Excel.Application")

excel.Visible = True

wb = excel.Workbooks.Add()

ws = wb.Worksheets("Sheet1")

ws.Cells(11).Value = "hello world"

wb.SaveAs('test.xlsx')

excel.Quit()