今天好无聊……
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from datetime import time, datetime
from time import sleep
def countdown():
nowtime = datetime.now()
xbtime = nowtime.replace(hour = 17,minute = 30,second = 0)
delta = xbtime - nowtime
print delta
if __name__ == "__main__":
while 1==1:
countdown()
sleep(1)