python 3.6 operating excel

import xlrd 
Get the current second EXCEL document sheet table of contents #
Data = xlrd.open_workbook ( 'C: / the Users / ADMIN \ Desktop / xxxxx.xlsx')
Table data.sheets = () [. 1]
# pass value according to a user Get x x line number in the current sheet 5 page value set
NUM = 0
x = 'cycle switch OFF'
x = STR (x)
clols_data table.col_values = (. 4)
for col_data in clols_data:
'' 'Print ( col_data)
Print (type (col_data)) '' '
IF X == col_data:
Print (NUM)
Print (col_data)
Print (type (col_data))
NUM = NUM +. 1

Guess you like

Origin www.cnblogs.com/fppblog/p/11294200.html