摘要:
直接上代码: 1 from openpyxl import Workbook 2 from openpyxl.cell import get_column_letter 3 4 wb = Workbook() 5 dest_filename = r'empty_book.xlsx' #file name 6 ws = wb.worksheets[0] #the first sheet 7 ws.title = "range names" #first sheet name 8 for col_idx in xrange(1... 阅读全文