代替以前的F5,Ctrl+r!

版权声明:转载请声明原文链接地址,谢谢! https://blog.csdn.net/weixin_42859280/article/details/84766459

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('我在坚守这个页面,回车一下让我走!'))

猜你喜欢

转载自blog.csdn.net/weixin_42859280/article/details/84766459