lines = [l for l in open("file.txt", "r") if l.find("20150723", 0, 8) != 0]
fd = open("file.txt", "w")
fd.writelines(lines)
fd.close()

开头是20150723的行删除