Python封装类:openpyxl文件对象操作封装

目录标题

xlsx对象

import os
import re
import time
import math
import openpyxl
```class xlsx(object):
    def __init__(self, file):
        if os.path.splitext(file)[1]=='.xlsx':
            self.name = file
            self.wb = openpyxl.load_workbook(file)
        else:

猜你喜欢

转载自blog.csdn.net/qq_37639139/article/details/124551510