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
|
continue
|
||||||
|
|
||||||
print(" ")
|
print(" ")
|
||||||
|
|
||||||
|
# Fusszeile mit Gesamtkosten und Gesamtverbrauch
|
||||||
print('Kosten Gesamt: ', kosten_gesamt)
|
print('Kosten Gesamt: ', kosten_gesamt)
|
||||||
strkostenkwh = str(kosten_pro_kwh)
|
strkostenkwh = str(kosten_pro_kwh)
|
||||||
print("Kosten pro kWh: " + strkostenkwh + " €")
|
print("Kosten pro kWh: " + strkostenkwh + " €")
|
||||||
verbrauch_gesamt = str(verbrauch_gesamt)
|
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