Teil 27: logging.config

This commit is contained in:
Olli Graf
2024-10-14 16:09:41 +02:00
parent d4165b0582
commit fd50a8628c
12 changed files with 148 additions and 24 deletions

View File

@@ -1,20 +0,0 @@
from math import pi as pi
class Kreis_gettattr:
def __init__(self, radius):
self.radius = radius
self.operators ={
'durchmesser': lambda x: self.radius * 2
'umfang': lambda x: self.durchmesser * pi
'flaeche': lambda: x: self.radius**2 *pi
}
def __getattr(self, name):
if name not in self.operators:
raise TypeError(f'unbekannte Operation {name}')
return {
} [name]