a
This commit is contained in:
@@ -4,4 +4,4 @@ Plan:
|
|||||||
(wysyłka maili na podstawie: https://github.com/thevickypedia/gmail-connector)
|
(wysyłka maili na podstawie: https://github.com/thevickypedia/gmail-connector)
|
||||||
- zasieg zmiennych, mutable i immutable
|
- zasieg zmiennych, mutable i immutable
|
||||||
- klasy
|
- klasy
|
||||||
- pliki i operacje... rozpoznawanie po nagłówkach
|
-
|
||||||
|
|||||||
33
dzien_04/klasy_02_tl.py
Normal file
33
dzien_04/klasy_02_tl.py
Normal file
@@ -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('-------------------')
|
||||||
6
dzien_05/Readme.md
Normal file
6
dzien_05/Readme.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
plan:
|
||||||
|
- klasy cd....
|
||||||
|
- pliki i operacje... rozpoznawanie po nagłówkach
|
||||||
|
- pyInstaller
|
||||||
|
- PySimpleGUI (stara wersja ~4)
|
||||||
|
- openCV
|
||||||
Reference in New Issue
Block a user