简体   繁体   English

有没有办法使用xlrd关闭工作簿

[英]Is there a way to close a workbook using xlrd

I am using the function open_workbook() to open an excel file. 我正在使用open_workbook()函数打开一个excel文件。 But I cannot find any function to close the file later in the xlrd module. 但我找不到任何函数来稍后在xlrd模块中关闭该文件。 Is there a way to close the xls file using xlrd? 有没有办法使用xlrd关闭xls文件? Or is not required at all? 或者根本不需要?

深入到邮件列表存档 ,似乎文件对象由构造函数直接关闭,因此您无需显式关闭它。

open_workbook在返回之前调用release_resources(关闭mmaped文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM