本列展示如何在Excel中自动的计算值以及如何自动的添加表格
#别名
import openpyxl as xl
from openpyxl.chart import BarChart,Reference
#加载对象
wb = xl.load_workbook('transactions.xlsx')
sheet = wb['Sheet1'] #excel中的下面的Sheet1
cell = sheet['a1'] #a1为列表
cell = sheet.cell(1,1) #取第一个表格的值
# print(cell.value)
# print(sheet.max_row)
for row in range(2