Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from datetime import *
- def checkIfSaving():
- today = datetime.date.today()
- alreadyStored = False
- in_file = open("checktime.txt", "rt") ; contents = in_file.read() ;ct = contents
- f=open('checktime.txt','rt');
- if contents != today:
- addMoney() ; alreadyStored = True
- f.write(today) ; f.close()
Add Comment
Please, Sign In to add comment