Reading particular cell value from excelsheet in python

后端 未结 4 1391
一整个雨季
一整个雨季 2020-12-15 12:02

I want to get particular cell values from excelsheet in my python script. I came across xlrd, xlwt, xlutils modules for reading/writin

4条回答
  •  鱼传尺愫
    2020-12-15 12:10

    The code below will help you in solving the problem:

    worksheet = workbook.sheet_by_name('Sheet1')
    num_rows = worksheet.nrows - 1
    curr_row = 0
    while curr_row < num_rows:
            curr_row += 1
            row = worksheet.row(curr_row)
            print row[0].value
    

提交回复
热议问题