workbook.copy_worksheet(products_sheet) <Worksheet "Products Copy"> workbook.sheetnames ['Products', 'Company Sales', 'Products Copy'] 如果你在保存上述代码后打开你的电子表格,你会发现工作表Products Copy是工作表Products的重复。 冻结行和列 在处理大的电子表格时,你可能想做的是冻结一些行或列,这样当...
sheetnames ['Products', 'Company Sales'] >>> products_sheet = workbook["Products"] >>> workbook.copy_worksheet(products_sheet) <Worksheet "Products Copy"> >>> workbook.sheetnames ['Products', 'Company Sales', 'Products Copy'] If you open your spreadsheet after saving the above code, ...