import datetime from datetime import date import locale locale.setlocale(locale.LC_ALL, 'de_DE') import os def clear(): os.system('cls') #on Windows System tage = ["Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"] wochentag = datetime.datetime.today().weekday() #Wochentag heute = date.today() heute_umf = heute.strftime(" %j") #Tag des Jahres heute_Monatsname = heute.strftime("%B") #Monatsname heute_WoNr = heute.strftime("%U") #Kalenderwoche datum= heute.strftime("%d.%m.%Y") #Tag.Monat.Jahr x=(heute_umf) x_=int(x) y=(heute_WoNr) y_=int(y) clear() #print (u"\u001b[44m") #Background blue #print (u"\u001b[44;1m") #Backhround light blue #print (u"\u001b[45m") #Background #Screen in Background Farbe for i in range (80): print (u"\u001b[44m") clear() #Ausgabe des Wochentages usw \u001b[33m print (u"\u001b[33;1m") # Textfarbe Gelb #print (u"\u001b[32m") #Textgarbe grün print(" Heute ist",tage[wochentag], ",",datum) print("_______________________________________________________") print(" (",heute_umf, ") Tag des Jahres im Monat", heute_Monatsname) print(" Wir befinden uns in der KW", heute_WoNr,"des Jahres",heute.strftime("%Y")) print (" Noch",365 - x_,"Tage im Jahr verbleibend...") print (" Noch", 52- y_,"Wochen im Jahr verbleibend...") #Prompt nach unten bringen for i in range (19): print (" ") #print (u"\u001b[0m") #Farbe reset #-------------------------------------------------------------------------------------------------