import openpyxl
filepath = r‘.\UCB2Create_course\SuccsessCourse.xlsx‘
wb = openpyxl.load_workbook(filepath)
sheetnames = wb.sheetnames
ws = wb[‘Sheet‘]
data = [[1,2,3],[4,5,6]]
for x in data:
ws.append(x)
savename = r‘.\UCB2Create_course\SuccsessCourse.xlsx‘
wb.save(savename)