Use the time module:
import time
def myfunc():
some code
while True:
myfunc()
|
|
失落的木瓜 · Python报错:PermissionErr ...· 1 周前 · |
|
|
痴情的脆皮肠 · Python 查CPU、GPU温度 - 墨天轮· 5 天前 · |
|
|
威武的烤面包 · python安装numpy后pycharm导 ...· 3 天前 · |
|
|
鬼畜的帽子 · 函数计算中,请问为什么 import ...· 3 天前 · |
|
|
冲动的楼梯 · 成功安装pip后python-levensh ...· 3 天前 · |
|
|
眼睛小的鞭炮 · PyQT5 QtWidgets ...· 2 年前 · |
|
|
沉着的太阳 · 用jQuery将JavaScript对象转换 ...· 2 年前 · |
|
|
慷慨大方的硬盘 · 自动调整字体大小的 EditText - 掘金· 2 年前 · |