如何在每分钟的第秒钟执行功能?
Time.Sleep(60)忽略了时间。
那么,如何让Python在每分钟的50秒标记上执行功能?
编辑:我的意思是我希望执行我的功能:
-20:00:50
-20:01:50
-20:02:50
and so on...
time.sleep(60) is oblivious to the time.
So how to get python to execute a function at say the 50-second mark of every minute?
EDIT: I mean I want my function to be executed at:
-20:00:50
-20:01:50
-20:02:50
and so on...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需循环:
Just put it in a loop: