我不知何故迷路了!有人提示为什么 check_date 字符串没有显示在输出中?
谢谢!
米
with open(LASTPULL,"r") as f:
check_date = f.readline()
if check_date == date:
print "\nNo new data. Pulled today already.\n"
exit()
else:
print "\nNew data found!\n"
print "LASTPULL Date : ", check_date
print "Actual Date : ", date
输出:
发现新数据! 最后拉日期: 实际日期:2013-07-11