摘要:
from openpyxl import load_workbook#1 打开Excel,返回工作簿wb = load_workbook("test_excel01.xlsx")#2 定位表单, 返回表单对象sheet = wb['test']#3 定位单元格res = sheet.cell(1, 阅读全文
posted @ 2022-03-29 18:32
狒狒桑
阅读(31)
评论(0)
推荐(0)
摘要:
class GetData: Cookie = "xiao"print(GetData.Cookie)setattr(GetData, 'Cookie', "da")print(getattr(GetData, 'Cookie'))print(hasattr(GetData, 'Cookie'))d 阅读全文
posted @ 2022-03-29 17:19
狒狒桑
阅读(31)
评论(0)
推荐(0)
摘要:
1. 基础类 class MathMethod: def __init__(self,a,b): self.a = a self.b = b def add(self): return self.a + self.b def sub(self): return self.a - self.b def 阅读全文
posted @ 2022-03-29 13:43
狒狒桑
阅读(56)
评论(0)
推荐(0)

浙公网安备 33010602011771号