linux 定时调用.sh文件
用来计算2个时间的时间差。
调用的时间建议采用挂载的方式,即:
nohup python -u xxx.py > nohup.test.log 2>&1 &
import time
import os
a = 1650380930.2743425 # 上一刻时间
lh = -1
lm = -1
ls = -1
while True:
b = time.time() ## 当前时间
seconds = b-a
m, s = divmod(seconds, 6
原创
2022-04-20 07:20:41 ·
1834 阅读 ·
0 评论