From 42a3a41134017b4fb219c38df83d07a010302997 Mon Sep 17 00:00:00 2001 From: Adam Jurkiewicz Pythonista Local Date: Thu, 18 Dec 2025 15:23:58 +0100 Subject: [PATCH] a --- dzien_04/Readme.md | 2 +- dzien_04/klasy_02_tl.py | 33 +++++++++++++++++++++++++++++++++ dzien_05/Readme.md | 6 ++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 dzien_04/klasy_02_tl.py create mode 100644 dzien_05/Readme.md diff --git a/dzien_04/Readme.md b/dzien_04/Readme.md index 3f9622d..38af5f3 100644 --- a/dzien_04/Readme.md +++ b/dzien_04/Readme.md @@ -4,4 +4,4 @@ Plan: (wysyłka maili na podstawie: https://github.com/thevickypedia/gmail-connector) - zasieg zmiennych, mutable i immutable - klasy -- pliki i operacje... rozpoznawanie po nagłówkach +- diff --git a/dzien_04/klasy_02_tl.py b/dzien_04/klasy_02_tl.py new file mode 100644 index 0000000..f3720ab --- /dev/null +++ b/dzien_04/klasy_02_tl.py @@ -0,0 +1,33 @@ +class Computer: + def __init__(self): + print("Startujemy...") + # definicja właściwości obiektów tej lasy + self.procesor = "CPU at start" + self.speed = "5 GHz" + self.cpu_speed = 5000 + + def __str__(self): + return f"To jest {id(self)=}" + + +komputer1 = Computer() +komputer2 = Computer() + +print(komputer1) +print('-------------------') +print(dir(komputer1)) +print(dir(komputer2)) +print('-------------------') +print(komputer1.procesor) +print(komputer2.procesor) + +komputer1.procesor = "AMD M6" +print('-------------------') +print(komputer1.procesor) +print(komputer2.procesor) +print('-------------------') + +komputer1.nowe_property = "Jakaś tam" +print(dir(komputer1)) +print(dir(komputer2)) +print('-------------------') \ No newline at end of file diff --git a/dzien_05/Readme.md b/dzien_05/Readme.md new file mode 100644 index 0000000..e315321 --- /dev/null +++ b/dzien_05/Readme.md @@ -0,0 +1,6 @@ +plan: +- klasy cd.... +- pliki i operacje... rozpoznawanie po nagłówkach +- pyInstaller +- PySimpleGUI (stara wersja ~4) +- openCV \ No newline at end of file