|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Python:
Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] on win32
Pyside6:
Name: PySide6
Version: 6.6.2
Summary: Python bindings for the Qt cross-platform application and UI framework
Home-page:
Author:
Author-email: Qt for Python Team <pyside@qt-project.org>
License: LGPL
Location: D:\Tools\Python\Lib\site-packages
Requires: PySide6-Addons, PySide6-Essentials, shiboken6
请问为什么执行下列红色的for语句就会卡死? 没有任何报错,就是卡半天,然后说程序失去响应。。。。
def exclude_rows_and_cols(self, exclude_rows_and_cols):
if self.File_Type == 'xls':
file_name = "123.xls"
# 拼接文件路径
file_path = os.path.join(self.File_Path, file_name)
Exclud_Book = xlrd.open_workbook(file_path)
else:
file_name = "123.xlsx"
# 拼接文件路径
file_path = os.path.join(self.File_Path, file_name)
Exclud_Book = load_workbook(file_path)
print('《123》共有', len(Exclud_Book.sheet_names()), '个工作表(sheet)。名称分别为:', Exclud_Book.sheet_names())
for sheet_name in Exclud_Book.sheet_names(): |
|