2024-06-25 06:12:47 发布
网友
使用win32com.客户端,如何计算excel文件中的所有工作表数?在
找到了:
excel = win32.gencache.EnsureDispatch('Excel.Application') try: wb = excel.Workbooks.Open(file) except: print "Failed to open spreadsheet " + file sys.exit(1) count = wb.Sheets.Count
找到了:
相关问题 更多 >
编程相关推荐