【发布时间】:2019-08-12 16:57:26
【问题描述】:
我想在 jupyter notebook 中运行我的程序,该程序在特定时间停止(例如 18:00)。我用while循环和增量索引写程序,但最好用时间参数写。
我每天运行上述程序 7 小时。它必须不间断地运行。
while(i<500000):
execute algorithm
i+=1
但我想像下面这样运行我的程序:
while(not 18:00 clock):
execute algorithm
【问题讨论】:
-
您好,欢迎您,您能否在您的问题中添加更多技术细节以帮助重现该问题
标签: python time while-loop jupyter-notebook