呵呵,不得不佩服Python的强大,寥寥几句代码就能做一个简单的刷博器。

import webbrowser as web
import time
import os

count=0
while count<10:
    count=count+1
    #你要刷的博客
    web.open_new_tab("http://www.cnblogs.com/smiler/archive/2010/04/20/1716418.html#2856973")
    time.sleep(1)
else:
    os.system('taskkill /F /IM  360se.exe')
    

 你可以试下,有没有很强大,小弟刚学Python,练手用的,这里主要学到三个知识点:

1.Python的线程原来是在time模块下

2.Python调用cmd命令行原来如此的简单,比C#简单的多

3.操作打开网页open一下就OK

衷心的强大哈,一定要学好!

相关文章:

  • 2021-04-08
  • 2021-09-18
  • 2022-12-23
  • 2021-10-12
  • 2021-10-18
  • 2021-11-02
  • 2021-09-21
猜你喜欢
  • 2021-11-27
  • 2021-06-16
  • 2021-05-21
  • 2021-09-28
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案