使用Python打印Hello World

Aspose.Cells - Hello World

使用Aspose.Cells中的Java在Python中打印Hello World,只需调用Document类的HelloWorld()方法并指定要附加到末尾的第二个文档。

Python 代码

 workbook = self.Workbook()

sheet = workbook.getWorksheets().get(0)

cell = sheet.getCells().get("A1")

cell.setValue("Hello World!")

file_format_type = self.FileFormatType

workbook.save(self.dataDir + "HelloWorld.xls" , file_format_type.EXCEL_97_TO_2003 )

print "Document has been saved, please check the output file.";

下载运行代码

从以下任何社交编码网站下载Hello World(Aspose.Cells)