The procedure is as follows , I would like to ask why reading and writing will report errors ? I didn't understand the answers found on the Internet
import xlrdfrom xlutils.copy import copy # Import replication module wb = xlrd.open_workbook('second.xls') # Read the workbook you want to modify nwb = copy(wb) # Copy workbooks nws1 = nwb.add_sheet('name1') # New sheet nws2 = nwb.get_sheet('0') # Read sheet nws1.wirte(1,0,'5') # Write data to the specified worksheet nwb.save(' Workbook name .xls')