import xlrd
wb=xlrd.open_workbook("c:\python\py_temp\subject.xls")
sheet = wb.sheet_by_name('Sheet1')
contents = {}
for row in range(sheet.nrows):
no=sheet.cell_value(row,0)
subj=sheet.cell_value(row,1)
contents[no]=subj
print(contents)
'컴퓨터 > Python' 카테고리의 다른 글
python selenium 로딩될 때까지 기다리기 (0) | 2020.09.24 |
---|---|
python selenium 팝업창 닫기 (0) | 2020.09.24 |
python selenium internet explorer webdriver (0) | 2020.09.03 |
python pandas 시트합치기 (0) | 2020.03.06 |
pandas 엑셀파일 xls xlsx 모두 합치기 (0) | 2020.03.05 |