Use the time module:
import time
def myfunc():
some code
while True:
myfunc()
|
|
欢快的香烟 · 将Mathematica生成的不规则形状数组 ...· 3 月前 · |
|
|
烦恼的水桶 · python用符号拼接DataFrame两列 ...· 3 月前 · |
|
|
斯文的杯子 · Python+Django 核心介绍 - ...· 3 月前 · |
|
|
愤怒的风衣 · Python 异步 ASGI ...· 3 月前 · |
|
|
奔跑的骆驼 · 结合使用 Oracle Database ...· 3 月前 · |
|
|
鬼畜的山羊 · iOS最全的常用正则表达式大全-腾讯云开发者 ...· 2 年前 · |
|
|
大气的苹果 · HILT : ...· 3 年前 · |
|
|
腼腆的西瓜 · c# - How to read a 16 ...· 3 年前 · |
|
|
难过的楼梯 · javascript - ...· 3 年前 · |