NETTİM
← Kod Sonuçlarına Dön
Python Fonksiyonlar Dosya işlemleri Veri dönüştürme Lisans: MIT

Python — open_workbook.py

Python — Fonksiyonlar, Dosya işlemleri, Veri dönüştürme. Fonksiyonlar: open_workbook.
02_reading_spreadsheets/open_workbook.py • Python
# open_workbook.py

from openpyxl import load_workbook


def open_workbook(path):
    workbook = load_workbook(filename=path)
    print(f"Worksheet names: {workbook.sheetnames}")
    sheet = workbook.active
    print(sheet)
    print(f"The title of the Worksheet is: {sheet.title}")


if __name__ == "__main__":
    open_workbook("books.xlsx")

Benzer Kod Örnekleri

Python — Excel_openpyxl.py
Python • Fonksiyonlar
Python — checkReturnType.ts
Python • Fonksiyonlar
Python — Excel_xlwt.py
Python • Fonksiyonlar
Python — Excel_xlrd.py
Python • Fonksiyonlar