使用win32com.client,如何计算excel文件中的所有页数?
Found it:
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.