Füllen Sie zuerst die Daten nach Zeile und dann nach Spalte aus
Contents
[
Hide
]
Das Ausfüllen einer Tabelle mit Daten zuerst nach Zeile und dann nach Spalte verbessert die Gesamtperformance.
Das Einsetzen von Daten in die Folge A1, B1, A2, B2 ist schneller als A1, A2, B1, B2. Wenn es viele Zellen in einem Arbeitsblatt gibt und Sie die zweite Sequenz befolgen, das heißt, Sie füllen die Daten Zeile für Zeile ein, kann dieser Tipp das Programm wesentlich schneller machen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Create a workbook | |
workbook = Workbook() | |
# Populate Data into Cells | |
cells = workbook.worksheets[0].cells | |
cells.get("A1").put_value("data1") | |
cells.get("B1").put_value("data2") | |
cells.get("A2").put_value("data3") | |
cells.get("B2").put_value("data4") | |
# Save workbook | |
workbook.save(dataDir + "output_out.xlsx") |