Use the time module:
import time
def myfunc():
some code
while True:
myfunc()
|
|
小眼睛的热带鱼 · Python equivalent of ...· 1 月前 · |
|
|
俊逸的火锅 · Python 控制台 — Blender ...· 1 月前 · |
|
|
健身的抽屉 · 在 Google Cloud 上使用 ...· 1 月前 · |
|
|
直爽的黑框眼镜 · Difference between ...· 1 月前 · |
|
|
性感的毛豆 · 通过SWIG实现在Python中调用C++代 ...· 1 月前 · |
|
|
没有腹肌的西瓜 · 塞尔维亚贝尔格莱德艺术大学2024年秋季学期 ...· 2 年前 · |
|
|
多情的仙人球 · 土木堡之变的真正原因:关于土木之战一些疑点的 ...· 2 年前 · |
|
|
悲伤的沙滩裤 · 在 TypeScript 中删除一个数组项_迹忆客· 2 年前 · |
|
|
另类的牛肉面 · 名侦探柯南:黑铁的鱼影/动漫/2023/高清 ...· 2 年前 · |
|
|
憨厚的金鱼 · Developer Community· 2 年前 · |
|
|
俊逸的火锅 · Python 控制台 — Blender Manual 1 月前 |
|
|
悲伤的沙滩裤 · 在 TypeScript 中删除一个数组项_迹忆客 2 年前 |
|
|
憨厚的金鱼 · Developer Community 2 年前 |