2017-02-17 15 views

答えて

-1
#you have to install the module 
#import the xlrd module 
import xlrd 
workbook = xlrd.open("example.xls") #it can take x|xs|xls format 
#if you know the name of the sheet use 
sheet = workbook.sheet_by_name("name of the sheet") 
#or you can use index number 
sheet = workbook.sheet_by_index("index of the sheet here") 
#you can print the cell you want like this 
print(" print from the 4th row 2nd cell".format(sheet(4,2).value)) 

これは役に立ちギブだった場合、それはない場合のように、私は英語ウェルありがとうを理解していないと私はこれだけのショー新しい

+2

ています'CodeName'ではなく、その名前やインデックスでシートにアクセスする方法。 (例えば、シートの 'CodeName'は' shtInputData'、 'Name'は' 'Input" '、インデックスは' 3'であるかもしれません。) – YowE3K

関連する問題