Python encapsulation class: openpyxl file object operation encapsulation

directory title

xlsx object

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:

Guess you like

Origin blog.csdn.net/qq_37639139/article/details/124551510