我有我打电话它在另一个功能是这样蟒蛇线程怪异的行为
import time
import threading
def f():
while(True):
print "hello"
time.sleep(5)
def execute():
t = threading.Timer(5,f)
t.start()
command = ''
while command != 'exit':
command = raw_input()
if command == 'exit':
t.cancel()
即使输入“exit”命令后,该功能是打印“你好” 我不能定时器功能找出什么是错的代码