python实现一定时间间隔执行一次程序,该如何解决

python实现一定时间间隔执行一次程序
我用python写的一个小程序,想要每个半分钟运行一次,不知道怎么实现还请各位大神帮忙
------解决方案--------------------

#!/usr/bin/env python


from threading import Timer
import time

timer_interval=1
def delayrun():
print 'running'

t=Timer(timer_interval,delayrun)
t.start()
while True:
time.sleep(0.1)
print 'main running'