python下定时器的写法 2019年8月19日 定时器 0条评论 33次阅读 0人点赞 尝试了很多写法,有各种timer的trick,也有结合sched来做的(感觉其实是穿一条裤子的)。最后还是觉得这个略有点二的写法比较实用。 import threading def say_sth(str): print…