detect_file_format方法

detect_file_format(,流)

检测并返回有关流中存储的 Excel 格式的信息。

返回

包含检测到的信息的 FileFormatInfo 对象。


@staticmethod
def detect_file_format(stream):
    ...
范围类型描述
streamio.RawIOBase

detect_file_format(,文件路径)

检测并返回有关文件中存储的 Excel 格式的信息。

返回

包含检测到的信息的 FileFormatInfo 对象。


@staticmethod
def detect_file_format(file_path):
    ...
范围类型描述
file_pathstr文件路径。

detect_file_format(,流,密码)

检测并返回有关流中存储的 Excel 格式的信息。

返回

包含检测到的信息的 FileFormatInfo 对象。


@staticmethod
def detect_file_format(stream, password):
    ...
范围类型描述
streamio.RawIOBase
passwordstr加密 ooxml 文件的密码。

detect_file_format(,文件路径,密码)

检测并返回有关文件中存储的 Excel 格式的信息。

返回

包含检测到的信息的 FileFormatInfo 对象。


@staticmethod
def detect_file_format(file_path, password):
    ...
范围类型描述
file_pathstr文件路径。
passwordstr加密 ooxml 文件的密码。

也可以看看