Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
python 엑셀(excel) 다루기 본문
A1 셀에 값 입력하기
# -*- coding: utf-8 -*- ''' Created on 2018. 9. 6. @author: bhm ''' import win32com.client excel = win32com.client.Dispatch("Excel.Application") excel.Visible = True wb = excel.Workbooks.Add() ws = wb.Worksheets("Sheet1") ws.Cells(1, 1).Value = "hello python" wb.SaveAs('C:\\Users\\bhm\\Desktop\\test.xlsx') excel.Quit()
'랭귀지 > python' 카테고리의 다른 글
python 엑셀(excel) 파일 읽기 (0) | 2018.09.11 |
---|---|
python excel 셀에 컬러 입히기 (0) | 2018.09.10 |
Python directory search and counting by specific extensions (0) | 2018.09.08 |
Python에서 확장자가 .wav .mp3 인 디렉토리의 모든 파일 찾기 (0) | 2018.09.07 |
Python 유용한 os 관련 함수 (0) | 2018.09.06 |
Comments