Ctrl+r代码:

set wshshell=wscript.createobject("wscript.shell")
for i=0 to 55
WScript.Sleep 30000
WshShell.Sendkeys"^r"
WshShell.Sendkeys i
Next

Python计算时间次数:

a = int(input('你离开几小时(h):'))
b = int(input('你离开几分钟(min):'))
c = int(input('几秒钟循环一次(s):'))
m = a*60*60+b*60
s = (a*60*60+b*60)/c
print("全部的秒数为:",m)
print("次数为:",s)
z = int(input('我在坚守这个页面,回车一下让我走!'))