def hello(): print "hello, world" global t t = Timer(3.0, hello) t.start()t = Timer(3.0, hello)t.start() # after 3 seconds, "hello, world" will be printed
Post a Comment
No comments:
Post a Comment