摘要: #引入库 threading import threading #定义函数 def fun_timer(): print('hello timer') #打印输出 global timer #定义变量 timer = threading.Timer(60,fun_timer) #60秒调用一次函数 阅读全文
posted @ 2017-11-03 13:53 roundlight 阅读(34834) 评论(1) 推荐(0) 编辑