Fußzeile angepasst
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7
-1
@@ -84,9 +84,15 @@ for zeile in inhalt:
|
||||
continue
|
||||
|
||||
print(" ")
|
||||
|
||||
# Fusszeile mit Gesamtkosten und Gesamtverbrauch
|
||||
print('Kosten Gesamt: ', kosten_gesamt)
|
||||
strkostenkwh = str(kosten_pro_kwh)
|
||||
print("Kosten pro kWh: " + strkostenkwh + " €")
|
||||
verbrauch_gesamt = str(verbrauch_gesamt)
|
||||
print("Verbrauch Gesamt: " + verbrauch_gesamt)
|
||||
try:
|
||||
formatted = "{:.3f}".format(float(verbrauch_gesamt)).replace('.', ',')
|
||||
except:
|
||||
formatted = verbrauch_gesamt
|
||||
print("Verbrauch Gesamt: " + formatted)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user