아미(아름다운미소)

python 엑셀(excel) 파일 읽기 본문

랭귀지/PYTHON

python 엑셀(excel) 파일 읽기

유키공 2018. 9. 11. 11:00
python 엑셀(excel) 파일 읽기
# -*- 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.Open('C:\\Users\\bhm\\Desktop\\input.xlsx')
ws = wb.ActiveSheet
print(ws.Cells(1,1).Value)
excel.Quit()

결과 : ㅎㅎㅎ



'랭귀지 > PYTHON' 카테고리의 다른 글

Python PyQt 이벤트 처리  (0) 2018.09.13
python PyQt  (0) 2018.09.12
python excel 셀에 컬러 입히기  (0) 2018.09.10
python 엑셀(excel) 다루기  (0) 2018.09.09
Python directory search and counting by specific extensions  (0) 2018.09.08
Comments