Çalışma Sayfasındaki hücre sayısını sayın
Contents
[
Hide
]
Çalışma Sayfasındaki hücre sayısını sayın
Aspose.Cells for Python via Java, çalışma sayfasındaki hücre sayısını sayma olanağı sağlar. Bunun için API,Cells.getCount() veyaCells.getCountLarge() özellikler.
Aşağıdaki kod parçacığı, nasıl kullanılacağını gösterir.Cells.getCount() veyaCells.getCountLarge() bir çalışma sayfasındaki hücre sayısını almak için özellikler.
This file contains 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
source_directory = "Examples/SampleFiles/SourceDirectory/" | |
# Load source Excel file | |
workbook = Workbook(source_directory + "Book1.xlsx") | |
# Access first worksheet | |
worksheet = workbook.getWorksheets().get(0) | |
# Print number of cells in the Worksheet | |
print("Number of Cells: " + str(worksheet.getCells().getCount())) |