랭귀지/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()