Explorar o código

'nnyverter.py' ändern

tsi %!s(int64=5) %!d(string=hai) anos
pai
achega
e8f2104576
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nnyverter.py

+ 1 - 1
nnyverter.py

@@ -62,6 +62,6 @@ with open("ergebnis.csv", 'w', newline='') as csvfile:
             daily = daily + float(match.group(2).replace(",","."))
             i = i+1
         print(daily)
-        spamwriter.writerow(["Gesamt"] + [daily])
+        spamwriter.writerow(["Gesamt"] + [str("=\"" + str(round(daily, 2)) + "\"")])
         spamwriter.writerow([])
         print("ok")