Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够使用 time 模块来做一些代码片段,但我有点困惑。当然这是我第一次使用它,所以我不知道该怎么做。然而,这是我的目标:
import time (every 10 minutes) # do something
import time tenminutes = 600 while true: time.sleep(tenminutes) print "This is a reminder"
这将每 10 分钟打印一次到控制台