xlrd API中文文件

2021-10-11 16:15:47 字數 2475 閱讀 6426

xlrd.open_workbook

開啟乙個excel檔案讀取資料
xlrd.

open_workbook

( filename=none,

logfile=

'' mode=

'w' encoding=

'utf-8'

>

, verbosity=0,

use_mmap=1,

file_contents=none,

encoding_override=none,

formatting_info=false,

on_demand=false,

ragged_rows=false

)

引數
備註
返參

xlrd.dump

用於除錯:以char&hex的格式轉儲xls檔案的biff記錄
xlrd.

dump

( filename,

outfile=

'' mode=

'w' encoding=

'utf-8'

>

, unnumbered=false

)

引數

xlrd.count_records

用於除錯和分析:彙總檔案的biff記錄,生成乙個排序後的檔案 (record_name, count)
xlrd.

count_records

( filename,

outfile=

'' mode=

'w' encoding=

'utf-8'

>

)

引數

class book

工作簿(workbook)的內容,通過 xlrd.open_workbook(filepath) 獲得例項化物件
屬性

biff_version= 0

codepage= none

encoding= none

countries= (0, 0)- 用於針對未知的codepage識別出正確的字符集,如:(1,61)表示(usa, australia)。

user_name= ''

font_list=format_list=format_map= {}load_time_stage_1= -1.0

load_time_stage_2= -1.0

nsheets= 0

name_and_scope_map= {}name_map= {}

name_obj_list=

colour_map= {}

palette_record=

xf_list=style_name_map= {}

方法

sheet_by_index(sheetx)sheet_by_name(sheet_name)sheet_names()

sheet_loaded(sheet_name_or_index)

unload_sheet(sheet_name_or_index)

release_resources()

class name

與命名引用、公式、巨集等有關的資訊(注:不適用book.biff_version < 50的版本)

class sheet

包含乙個sheet頁的資料內容,需要先呼叫xlrd.open_workbook()獲得book物件再來獲取sheet物件
持續補充中…@2020/12/08

Pentaho bi 中文文件

目錄 building and debugging pentaho with eclipse zh cn 1.5.4 getting started with the bi platform zh cn 1.5.4 pentaho building components 1.5.4 pentaho ...

vim 中文文件

安裝中文幫助文件之前首先執行下列操作 在home目錄下列新建資料夾 vim vim是乙個隱藏檔案,不要漏了 vim plugin vim目錄下的plugin資料夾 vim doc vim目錄下的doc資料夾 vim syntax vim目錄下的syntax資料夾 在home目錄下新建隱藏檔案 vim...

sklearn中文文件

apachecn cwiki 位址為 scikit learn 0.18 中文文件 sklearn 基於 python 語言的,簡單高效的資料探勘和資料分析工具,建立在 numpy,scipy 和 matplotlib 上。以下是 sklearn 官方文件中文版,如果你也有興趣,歡迎來一起來維護迭代...