Deleting a line in a file
问题 I am having an issue with a timetracker program, where I am trying to identify a line in a file by iterating over it and then writing the lines UNLESS there is anything with the variable "delete" in it, for some reason its going through the file and saying it is deleted, but the loop doesn't delete any lines. date = input(" What is today's date? month-day-year format please. (E.G. 01-14-2003) ") if os.path.exists(date): today = open(date, "r") print(today.read()) delete = input(" Which