import time
import sys
#create by henryzkf 2018315 succ
soundFile = ‘sound.wav‘
not_executed = 1
def soundStart():
if sys.platform[:5] == ‘linux‘:
import os
os.popen2(‘aplay -q‘ + soundFile)
else:
import winsound
winsound.PlaySound(soundFile, winsound.SND_FILENAME)
while(not_executed):
dt = list(time.localtime())
hour = dt[3]
minute = dt[4]
if hour == 17 and minute == 38: # 下午5点33分的时候开始提示
soundStart()
not_executed = 0