Created
February 23, 2016 06:04
-
-
Save sugiana/06d983befc8ec05e675a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install xlrd | |
import sys | |
from xlrd import open_workbook | |
filename = sys.argv[1] | |
wb = open_workbook(filename) | |
sheet = wb.sheet_by_index(0) | |
for row in range(sheet.nrows): | |
for col in range(sheet.ncols): | |
value = sheet.cell(row, col) | |
print('Row {row} Col {col} {value}'.format(row=row, col=col, | |
value=value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment