fromaspose.cellsimportWorkbookfromaspose.pydrawingimportColor# Instantiating a Workbook objectworkbook=Workbook()# Adding a new worksheet to the Excel objectworkbook.worksheets.add()# Obtaining the reference of the newly added worksheet by passing its sheet indexworksheet=workbook.worksheets[0]# Accessing the "A1" cell from the worksheetcell=worksheet.cells.get("A1")# Adding some value to the "A1" cellcell.put_value("Visit Aspose!")# getting charactorcharactor=cell.characters(6,7)# Setting the font of selected characters to boldcharactor.font.is_bold=True# Setting the font color of selected characters to bluecharactor.font.color=Color.blue# Saving the Excel fileworkbook.save("book1.xls")